Creates a new job_files by supplying directly the field job_files.file_content as Byte Array
Request Information
URI Parameters :
None.
Body Parameters :
job_files| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier |
Required |
| jobs_id |
Job Id |
globally unique identifier |
Required |
| job_approval_id |
Job approval Id |
globally unique identifier |
Required |
| file_name |
Name of the file |
string |
Required Max length: 100 |
| name | string |
Max length: 100 |
|
| description |
Description of the file |
string | |
| tags |
Tags of the file |
string | |
| 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_type |
Readonly: Constant in case of specific file. Can be JOB_APPROVAL, ORDERPDF, PURCHASE_ORDERPDF |
string |
Max length: 200 |
| image_height |
In case of picture, the original heigth |
integer | |
| image_width |
In case of picture, the original width |
integer | |
| file_size |
Size in bytes of the file_content |
integer | |
| sales_organization_id | 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_content |
The file content, in Byte Array. Use this field when using POST/PUT |
Collection of byte | |
| dateutc_added |
Date UTC when file has been added |
date | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| user_id | globally unique identifier | ||
| show_on_web | boolean | ||
| db_report_id |
The id of db_report |
globally unique identifier |
Request Formats :
application/json, text/json
{
"id": "97395326-8dc8-4433-8a4c-d5b44245c6b9",
"jobs_id": "cc820a34-8c78-4e4e-9ccb-e7482d3e31e5",
"job_approval_id": "4cda27cc-54b9-4fdc-acec-1ef936c0c265",
"file_name": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"tags": "sample string 7",
"mime_type": "sample string 8",
"file_type": "sample string 9",
"image_height": 10,
"image_width": 11,
"file_size": 12,
"sales_organization_id": "3c975ff2-7a0c-4a41-af04-4c60186daf65",
"sales_organization_code": "sample string 14",
"file_content": "QEA=",
"dateutc_added": "2026-05-31T19:30:00.2423814+00:00",
"modified_dateutc": "2026-05-31T19:30:00.2423814+00:00",
"user_id": "7a7532c4-05fe-464b-8b43-b1f13215831a",
"show_on_web": true,
"db_report_id": "b7dd7e13-aebf-4d5d-af07-e50268e199af"
}
Response Information
Resource Description :
job_files| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier |
Required |
| jobs_id |
Job Id |
globally unique identifier |
Required |
| job_approval_id |
Job approval Id |
globally unique identifier |
Required |
| file_name |
Name of the file |
string |
Required Max length: 100 |
| name | string |
Max length: 100 |
|
| description |
Description of the file |
string | |
| tags |
Tags of the file |
string | |
| 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_type |
Readonly: Constant in case of specific file. Can be JOB_APPROVAL, ORDERPDF, PURCHASE_ORDERPDF |
string |
Max length: 200 |
| image_height |
In case of picture, the original heigth |
integer | |
| image_width |
In case of picture, the original width |
integer | |
| file_size |
Size in bytes of the file_content |
integer | |
| sales_organization_id | 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_content |
The file content, in Byte Array. Use this field when using POST/PUT |
Collection of byte | |
| dateutc_added |
Date UTC when file has been added |
date | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| user_id | globally unique identifier | ||
| show_on_web | boolean | ||
| db_report_id |
The id of db_report |
globally unique identifier |
Response Formats
application/json, text/json
{
"id": "002ca08a-8268-49cc-a15d-9634af29676d",
"jobs_id": "a9dc66d7-8a23-4eab-a602-1c041dd41123",
"job_approval_id": "decef447-49ec-47c2-9d06-da764b7cc8b4",
"file_name": "sample string 4",
"name": "sample string 5",
"description": "sample string 6",
"tags": "sample string 7",
"mime_type": "sample string 8",
"file_type": "sample string 9",
"image_height": 10,
"image_width": 11,
"file_size": 12,
"sales_organization_id": "9eb79a21-5e6c-41f1-b2fc-aa8b74e630c9",
"sales_organization_code": "sample string 14",
"file_content": "QEA=",
"dateutc_added": "2026-05-31T19:30:00.3040348+00:00",
"modified_dateutc": "2026-05-31T19:30:00.3040348+00:00",
"user_id": "c3b11089-07ad-4570-a0a0-f42093d869ab",
"show_on_web": true,
"db_report_id": "107f6b47-fcda-4067-9a40-9bbe1cc2af73"
}