Creates a new db_file by supplying directly the field db_file.file_content as Byte Array
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 | |
| db_table_name | 
                         Foreign key to the table of the linked entity using table name. Can be article,company,contact,jobs,job_approval,project or task.Will be also filled on Get to allow Odata Filter on it  | 
                    string | |
| id_in_table | 
                         Id of the linked entity  | 
                    globally unique identifier | |
| name | 
                         Name of the file  | 
                    string | 
                                 Required Max length: 100  | 
                
| description | 
                         Description of the file  | 
                    string | 
                                 Max length: 4000  | 
                
| file_name | 
                         File_name of the file  | 
                    string | 
                                 Max length: 100  | 
                
| image_width | 
                         In case of picture, the original width  | 
                    integer | |
| image_heigth | 
                         In case of picture, the original heigth  | 
                    integer | |
| mime_type | 
                         Mime-type of the file.Used when redirect user to the data, like application/pdf or image/jpeg  | 
                    string | 
                                 Max length: 100  | 
                
| file_content | 
                         The file content, in Byte Array. Use this field when using POST/Put  | 
                    Collection of byte | |
| db_file_folder_id | 
                         For Global Files : Foreign key to db file folder  | 
                    globally unique identifier | |
| db_file_folder_reference_back_office | 
                         Embedded entity "db_file_folder" using ERP PK when adding/updating db_file  | 
                    string | |
| db_file_folder | 
                         Embedded entity "db_file_folder" using node when adding/updating db_file  | 
                    db_file_folder | |
| sales_organization_id | 
                         In case of global files - you can specifiy if it's available for all organization or only one  | 
                    globally unique identifier | |
| sales_organization_code | 
                         Embedded entity "sales_organization" using ERP PK when adding/updating db_file  | 
                    string | |
| sales_organization | 
                         Embedded entity "sales_organization" using node when adding/updating db_file  | 
                    sales_organization | |
| file_type_name | 
                         Readonly :Constant in case of specific file. Can be JOB_APPROVAL, ORDERPDF, PURCHASE_ORDERPDF  | 
                    string | |
| file_size | 
                         Size in bytes of the file_content  | 
                    integer | |
| user_notification | 
                         For Global files - indicate if user should be informed that this file is available  | 
                    boolean | |
| is_archived | 
                         Indicate if the file has been deleted (content flushed)  | 
                    boolean | |
| date_add | 
                         Date when file has been added  | 
                    date | |
| date_update | 
                         Update date, auto filled by Now if no value received  | 
                    date | |
| modified_dateutc | 
                         Readonly system field managed by database, filled with GetUtcDate when adding,updating  | 
                    date | 
Request Formats :
application/json, text/json
{
  "id": "88db0455-502a-4c40-9b85-5c86995beb8f",
  "db_table_id": "8355b50f-149f-4fd2-a143-c1783c287dcf",
  "db_table_name": "sample string 3",
  "id_in_table": "cccd8706-32a5-457f-87ab-d7c73c65e4c4",
  "name": "sample string 5",
  "description": "sample string 6",
  "file_name": "sample string 7",
  "image_width": 8,
  "image_heigth": 9,
  "mime_type": "sample string 10",
  "file_content": "QEA=",
  "db_file_folder_id": "4ef8fdba-8829-48f3-8140-2943bd819d36",
  "db_file_folder_reference_back_office": "sample string 12",
  "sales_organization_id": "c2a3fe59-249f-4963-8ef2-728b36e7a27e",
  "sales_organization_code": "sample string 14",
  "file_type_name": "sample string 15",
  "file_size": 16,
  "user_notification": true,
  "is_archived": true,
  "date_add": "2025-10-28T17:16:31.7897431+00:00",
  "date_update": "2025-10-28T17:16:31.7897431+00:00",
  "modified_dateutc": "2025-10-28T17:16:31.7897431+00:00"
}
        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 | |
| db_table_name | 
                         Foreign key to the table of the linked entity using table name. Can be article,company,contact,jobs,job_approval,project or task.Will be also filled on Get to allow Odata Filter on it  | 
                    string | |
| id_in_table | 
                         Id of the linked entity  | 
                    globally unique identifier | |
| name | 
                         Name of the file  | 
                    string | 
                                 Required Max length: 100  | 
                
| description | 
                         Description of the file  | 
                    string | 
                                 Max length: 4000  | 
                
| file_name | 
                         File_name of the file  | 
                    string | 
                                 Max length: 100  | 
                
| image_width | 
                         In case of picture, the original width  | 
                    integer | |
| image_heigth | 
                         In case of picture, the original heigth  | 
                    integer | |
| mime_type | 
                         Mime-type of the file.Used when redirect user to the data, like application/pdf or image/jpeg  | 
                    string | 
                                 Max length: 100  | 
                
| file_content | 
                         The file content, in Byte Array. Use this field when using POST/Put  | 
                    Collection of byte | |
| db_file_folder_id | 
                         For Global Files : Foreign key to db file folder  | 
                    globally unique identifier | |
| db_file_folder_reference_back_office | 
                         Embedded entity "db_file_folder" using ERP PK when adding/updating db_file  | 
                    string | |
| db_file_folder | 
                         Embedded entity "db_file_folder" using node when adding/updating db_file  | 
                    db_file_folder | |
| sales_organization_id | 
                         In case of global files - you can specifiy if it's available for all organization or only one  | 
                    globally unique identifier | |
| sales_organization_code | 
                         Embedded entity "sales_organization" using ERP PK when adding/updating db_file  | 
                    string | |
| sales_organization | 
                         Embedded entity "sales_organization" using node when adding/updating db_file  | 
                    sales_organization | |
| file_type_name | 
                         Readonly :Constant in case of specific file. Can be JOB_APPROVAL, ORDERPDF, PURCHASE_ORDERPDF  | 
                    string | |
| file_size | 
                         Size in bytes of the file_content  | 
                    integer | |
| user_notification | 
                         For Global files - indicate if user should be informed that this file is available  | 
                    boolean | |
| is_archived | 
                         Indicate if the file has been deleted (content flushed)  | 
                    boolean | |
| date_add | 
                         Date when file has been added  | 
                    date | |
| date_update | 
                         Update date, auto filled by Now if no value received  | 
                    date | |
| modified_dateutc | 
                         Readonly system field managed by database, filled with GetUtcDate when adding,updating  | 
                    date | 
Response Formats
application/json, text/json
{
  "id": "71470e47-884f-4d48-a755-2efcd44151f9",
  "db_table_id": "77e1179c-6d5a-4a17-8ade-e8f71753e90c",
  "db_table_name": "sample string 3",
  "id_in_table": "c32f4b6a-8534-4b4e-ada3-56141a58c069",
  "name": "sample string 5",
  "description": "sample string 6",
  "file_name": "sample string 7",
  "image_width": 8,
  "image_heigth": 9,
  "mime_type": "sample string 10",
  "file_content": "QEA=",
  "db_file_folder_id": "e5a7a7fa-a939-4892-b63d-87f5da055c2b",
  "db_file_folder_reference_back_office": "sample string 12",
  "sales_organization_id": "85f97e58-fa37-456b-a807-a97bf2f420d7",
  "sales_organization_code": "sample string 14",
  "file_type_name": "sample string 15",
  "file_size": 16,
  "user_notification": true,
  "is_archived": true,
  "date_add": "2025-10-28T17:16:31.7897431+00:00",
  "date_update": "2025-10-28T17:16:31.7897431+00:00",
  "modified_dateutc": "2025-10-28T17:16:31.7897431+00:00"
}