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": "57eb996d-7755-4d8f-8f37-b45c8d219369",
"db_table_id": "300a412a-963b-4505-8be5-f66eb2609301",
"id_in_table": "e0800e4c-d0cf-46ae-8a3d-56439badff5d",
"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": "1d45ebfb-fb30-4f1d-af7f-6b3676129704",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-01-11T23:50:19.129786+00:00",
"date_add": "2026-01-11T23:50:19.129786+00:00",
"dateutc_add": "2026-01-11T23:50:19.129786+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-01-11T23:50:19.1414487+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-01-11T23:50:19.129Z</date_add> <date_update>2026-01-11T23:50:19.129Z</date_update> <dateutc_add>2026-01-11T23:50:19.129Z</dateutc_add> <db_table_id>300a412a-963b-4505-8be5-f66eb2609301</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>57eb996d-7755-4d8f-8f37-b45c8d219369</id> <id_in_table>e0800e4c-d0cf-46ae-8a3d-56439badff5d</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-01-11T23:50:19.141Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>1d45ebfb-fb30-4f1d-af7f-6b3676129704</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": "cf4cc182-13d8-40e2-8212-b5119c0a1fe9",
"db_table_id": "17d8f6fc-26da-4dbc-a57c-a1ebb34e6c0a",
"id_in_table": "d25bc506-f61e-44e1-945b-4ee8e7e790f5",
"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": "c8e1685e-8c38-41a5-9919-a8a58850e121",
"description": "sample string 11",
"tags": "sample string 12",
"date_update": "2026-01-11T23:50:19.1570733+00:00",
"date_add": "2026-01-11T23:50:19.1570733+00:00",
"dateutc_add": "2026-01-11T23:50:19.1570733+00:00",
"name": "sample string 16",
"file_size": 17,
"modified_dateutc": "2026-01-11T23:50:19.1570733+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-01-11T23:50:19.157Z</date_add> <date_update>2026-01-11T23:50:19.157Z</date_update> <dateutc_add>2026-01-11T23:50:19.157Z</dateutc_add> <db_table_id>17d8f6fc-26da-4dbc-a57c-a1ebb34e6c0a</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>cf4cc182-13d8-40e2-8212-b5119c0a1fe9</id> <id_in_table>d25bc506-f61e-44e1-945b-4ee8e7e790f5</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-01-11T23:50:19.157Z</modified_dateutc> <name>sample string 16</name> <sys_logical_delete>true</sys_logical_delete> <tags>sample string 12</tags> <user_id>c8e1685e-8c38-41a5-9919-a8a58850e121</user_id> </db_file>