Add/update db_file
Request Information
URI Parameters :
None.
Body Parameters :
db_file| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier |
Required |
| db_table_id |
Table.id of the linked entity |
globally unique identifier | |
| id_in_table |
Id of the linked entity |
globally unique identifier | |
| file_type | string | ||
| is_default | boolean | ||
| file_name |
File_name of the file |
string | |
| mime_type | string | ||
| file_content | Collection of byte | ||
| image_width |
In case of picture, the original width |
integer | |
| image_heigth |
In case of picture, the original heigth |
integer | |
| user_id | globally unique identifier | ||
| description | string | ||
| tags | string | ||
| date_update | date | ||
| date_add | date | ||
| dateutc_add | date | ||
| name | string | ||
| file_size | integer | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| is_showonweb |
Is available on ServiceDesk? |
boolean | |
| sys_logical_delete | boolean |
Request Formats :
application/json, text/json
Sample:
{
"id": "9c3da0ae-a369-45cc-8759-ef0127c9f809",
"db_table_id": "1b01c5a8-b934-4c3f-955b-418dc5c73437",
"id_in_table": "52d0946b-48f5-478e-a008-41d3747aa7bf",
"file_type": "sample string 4",
"is_default": true,
"file_name": "sample string 6",
"mime_type": "sample string 7",
"file_content": "QEA=",
"image_width": 8,
"image_heigth": 9,
"user_id": "7235c905-2ae1-47a1-88a8-89e7fbf35c06",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-06-16T21:16:46.4401627+00:00",
"date_add": "2026-06-16T21:16:46.4401627+00:00",
"dateutc_add": "2026-06-16T21:16:46.4401627+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-06-16T21:16:46.4401627+00:00",
"is_showonweb": true,
"sys_logical_delete": true
}
application/xml, text/xml
Sample:
<db_file xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <date_add>2026-06-16T21:16:46.440Z</date_add> <date_update>2026-06-16T21:16:46.440Z</date_update> <dateutc_add>2026-06-16T21:16:46.440Z</dateutc_add> <db_table_id>1b01c5a8-b934-4c3f-955b-418dc5c73437</db_table_id> <description>sample string 11</description> <file_content>QEA=</file_content> <file_name>sample string 6</file_name> <file_size>17</file_size> <file_type>sample string 4</file_type> <id>9c3da0ae-a369-45cc-8759-ef0127c9f809</id> <id_in_table>52d0946b-48f5-478e-a008-41d3747aa7bf</id_in_table> <image_heigth>9</image_heigth> <image_width>8</image_width> <is_default>true</is_default> <is_showonweb>true</is_showonweb> <mime_type>sample string 7</mime_type> <modified_dateutc>2026-06-16T21:16:46.440Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>7235c905-2ae1-47a1-88a8-89e7fbf35c06</user_id> </db_file>
Response Information
Resource Description :
db_file| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier |
Required |
| db_table_id |
Table.id of the linked entity |
globally unique identifier | |
| id_in_table |
Id of the linked entity |
globally unique identifier | |
| file_type | string | ||
| is_default | boolean | ||
| file_name |
File_name of the file |
string | |
| mime_type | string | ||
| file_content | Collection of byte | ||
| image_width |
In case of picture, the original width |
integer | |
| image_heigth |
In case of picture, the original heigth |
integer | |
| user_id | globally unique identifier | ||
| description | string | ||
| tags | string | ||
| date_update | date | ||
| date_add | date | ||
| dateutc_add | date | ||
| name | string | ||
| file_size | integer | ||
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| is_showonweb |
Is available on ServiceDesk? |
boolean | |
| sys_logical_delete | boolean |
Response Formats
application/json, text/json
Sample:
{
"id": "e49d6e17-74da-49c7-8e85-d2fa60d48e12",
"db_table_id": "63724fb8-5463-4c44-9f44-bda0956c57ea",
"id_in_table": "e959b877-eb82-4bd4-869e-890da8da8866",
"file_type": "sample string 4",
"is_default": true,
"file_name": "sample string 6",
"mime_type": "sample string 7",
"file_content": "QEA=",
"image_width": 8,
"image_heigth": 9,
"user_id": "eb681a76-a860-456c-934c-be80afb57ea4",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-06-16T21:16:46.4602642+00:00",
"date_add": "2026-06-16T21:16:46.4602642+00:00",
"dateutc_add": "2026-06-16T21:16:46.4602642+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-06-16T21:16:46.4602642+00:00",
"is_showonweb": true,
"sys_logical_delete": true
}
application/xml, text/xml
Sample:
<db_file xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <date_add>2026-06-16T21:16:46.460Z</date_add> <date_update>2026-06-16T21:16:46.460Z</date_update> <dateutc_add>2026-06-16T21:16:46.460Z</dateutc_add> <db_table_id>63724fb8-5463-4c44-9f44-bda0956c57ea</db_table_id> <description>sample string 11</description> <file_content>QEA=</file_content> <file_name>sample string 6</file_name> <file_size>17</file_size> <file_type>sample string 4</file_type> <id>e49d6e17-74da-49c7-8e85-d2fa60d48e12</id> <id_in_table>e959b877-eb82-4bd4-869e-890da8da8866</id_in_table> <image_heigth>9</image_heigth> <image_width>8</image_width> <is_default>true</is_default> <is_showonweb>true</is_showonweb> <mime_type>sample string 7</mime_type> <modified_dateutc>2026-06-16T21:16:46.460Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>eb681a76-a860-456c-934c-be80afb57ea4</user_id> </db_file>