Creates a new task_files by supplying directly the field task_files.file_content as Byte Array

Request Information

URI Parameters :

None.

Body Parameters :

task_files
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

task_id

Task 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

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_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

Required

show_on_web

boolean

Request Formats :

application/json, text/json

Sample:
{
  "id": "78111600-337d-41d6-8de8-c6cf1484c87f",
  "task_id": "cfb79040-1c74-4a35-816c-6c3044b51415",
  "file_name": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "tags": "sample string 6",
  "mime_type": "sample string 7",
  "file_type": "sample string 8",
  "image_height": 9,
  "image_width": 10,
  "file_size": 11,
  "sales_organization_id": "7726376d-8cd4-4eca-bf2e-de029269c9d4",
  "sales_organization_code": "sample string 13",
  "file_content": "QEA=",
  "dateutc_added": "2024-11-21T08:53:06.0493169+00:00",
  "modified_dateutc": "2024-11-21T08:53:06.0493169+00:00",
  "user_id": "dfaaea25-d68e-44d2-a3fd-1032b2d7fc48",
  "show_on_web": true
}

Response Information

Resource Description :

task_files
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

task_id

Task 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

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_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

Required

show_on_web

boolean

Response Formats

application/json, text/json

Sample:
{
  "id": "ab154d3a-ee87-42e1-a706-b9906878fb99",
  "task_id": "1f5fabaa-fc31-4e0b-a3dc-d11683e0df79",
  "file_name": "sample string 3",
  "name": "sample string 4",
  "description": "sample string 5",
  "tags": "sample string 6",
  "mime_type": "sample string 7",
  "file_type": "sample string 8",
  "image_height": 9,
  "image_width": 10,
  "file_size": 11,
  "sales_organization_id": "be5a5e9e-c542-4ddd-b955-8bff8fd3a0e9",
  "sales_organization_code": "sample string 13",
  "file_content": "QEA=",
  "dateutc_added": "2024-11-21T08:53:06.0493169+00:00",
  "modified_dateutc": "2024-11-21T08:53:06.0493169+00:00",
  "user_id": "15350cd0-8ee2-4dda-b139-277db6a8c213",
  "show_on_web": true
}