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": "e8ca38f3-336f-4039-80b1-1ee403eda0e0",
"db_table_id": "81c3f5a3-1735-46cc-85b2-54ef9e215e1b",
"id_in_table": "c3b4b374-aa80-4602-95e4-3ae720e58d97",
"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": "301c7608-5747-462a-9f79-c1afc28b1ed7",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-06-16T21:16:06.7241834+00:00",
"date_add": "2026-06-16T21:16:06.7241834+00:00",
"dateutc_add": "2026-06-16T21:16:06.7241834+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-06-16T21:16:06.7241834+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:06.724Z</date_add> <date_update>2026-06-16T21:16:06.724Z</date_update> <dateutc_add>2026-06-16T21:16:06.724Z</dateutc_add> <db_table_id>81c3f5a3-1735-46cc-85b2-54ef9e215e1b</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>e8ca38f3-336f-4039-80b1-1ee403eda0e0</id> <id_in_table>c3b4b374-aa80-4602-95e4-3ae720e58d97</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:06.724Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>301c7608-5747-462a-9f79-c1afc28b1ed7</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": "c5d10990-29b2-45ed-8131-1c28b8b5b5eb",
"db_table_id": "ed0842e3-2552-4b26-8729-3ad679c38789",
"id_in_table": "a7fc8984-a1e2-4e76-a96b-8711bd82cb9d",
"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": "02007c18-ac52-4c2e-b9d1-54a888221d2f",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-06-16T21:16:06.7241834+00:00",
"date_add": "2026-06-16T21:16:06.7241834+00:00",
"dateutc_add": "2026-06-16T21:16:06.7241834+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-06-16T21:16:06.7241834+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:06.724Z</date_add> <date_update>2026-06-16T21:16:06.724Z</date_update> <dateutc_add>2026-06-16T21:16:06.724Z</dateutc_add> <db_table_id>ed0842e3-2552-4b26-8729-3ad679c38789</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>c5d10990-29b2-45ed-8131-1c28b8b5b5eb</id> <id_in_table>a7fc8984-a1e2-4e76-a96b-8711bd82cb9d</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:06.724Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>02007c18-ac52-4c2e-b9d1-54a888221d2f</user_id> </db_file>