Creates a new company file.
Request Information
URI Parameters :
None.
Body Parameters :
company_files| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier | |
| company_id |
Foreign key of the company this file is attached to. |
globally unique identifier | |
| file_name |
Original file name, including extension. |
string | |
| name |
Display name of the file. |
string | |
| description |
Free-text description of the file. |
string | |
| file_type |
File type/category classification. |
string | |
| mime_type |
MIME type of the file (e.g. "application/pdf", "image/jpeg"). |
string | |
| image_width |
Width of the file, in pixels, when it is an image. |
integer | |
| image_heigth |
Height of the file, in pixels, when it is an image. |
integer | |
| file_size |
Size of the file, in bytes. |
integer | |
| date_update |
Local date and time the file was last updated. |
date | |
| date_add |
Local date and time the file was added. |
date | |
| dateutc_add |
UTC date and time the file was added. |
date | |
| user_id |
Foreign key of the user who added this file. |
globally unique identifier | |
| is_showonweb |
Indicates whether this file should be shown on the customer-facing web/e-Service portal. |
boolean | |
| file_content |
Raw binary content of the file. |
Collection of byte | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{
"id": "c745089c-9bda-4ee2-b144-37bb8dbcd77a",
"company_id": "d492cc2a-5e63-4d5a-9725-78f0cda63acf",
"file_name": "sample string 3",
"name": "sample string 4",
"description": "sample string 5",
"file_type": "sample string 6",
"mime_type": "sample string 7",
"image_width": 8,
"image_heigth": 9,
"file_size": 10,
"date_update": "2026-09-15T22:18:12.8589014+00:00",
"date_add": "2026-09-15T22:18:12.8589014+00:00",
"dateutc_add": "2026-09-15T22:18:12.8589014+00:00",
"user_id": "a42acf8b-010c-4000-a366-50fc76423bef",
"is_showonweb": true,
"file_content": "QEA=",
"modified_dateutc": "2026-09-15T22:18:12.8894322+00:00"
}
application/xml, text/xml
<company_files xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<company_id>d492cc2a-5e63-4d5a-9725-78f0cda63acf</company_id>
<date_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:12.8589014Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_add>
<date_update xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:12.8589014Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_update>
<dateutc_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:12.8589014Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</dateutc_add>
<description>sample string 5</description>
<file_content>QEA=</file_content>
<file_name>sample string 3</file_name>
<file_size>10</file_size>
<file_type>sample string 6</file_type>
<id>c745089c-9bda-4ee2-b144-37bb8dbcd77a</id>
<image_heigth>9</image_heigth>
<image_width>8</image_width>
<is_showonweb>true</is_showonweb>
<mime_type>sample string 7</mime_type>
<modified_dateutc>2026-09-15T22:18:12.889Z</modified_dateutc>
<name>sample string 4</name>
<user_id>a42acf8b-010c-4000-a366-50fc76423bef</user_id>
</company_files>
Response Information
Resource Description :
IHttpActionResult containing the created company file.
company_files| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier | |
| company_id |
Foreign key of the company this file is attached to. |
globally unique identifier | |
| file_name |
Original file name, including extension. |
string | |
| name |
Display name of the file. |
string | |
| description |
Free-text description of the file. |
string | |
| file_type |
File type/category classification. |
string | |
| mime_type |
MIME type of the file (e.g. "application/pdf", "image/jpeg"). |
string | |
| image_width |
Width of the file, in pixels, when it is an image. |
integer | |
| image_heigth |
Height of the file, in pixels, when it is an image. |
integer | |
| file_size |
Size of the file, in bytes. |
integer | |
| date_update |
Local date and time the file was last updated. |
date | |
| date_add |
Local date and time the file was added. |
date | |
| dateutc_add |
UTC date and time the file was added. |
date | |
| user_id |
Foreign key of the user who added this file. |
globally unique identifier | |
| is_showonweb |
Indicates whether this file should be shown on the customer-facing web/e-Service portal. |
boolean | |
| file_content |
Raw binary content of the file. |
Collection of byte | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Response Formats
application/json, text/json
{
"id": "a2bdef20-1f31-4820-97a9-dabab6528c03",
"company_id": "a044eee0-ac45-45fd-a515-457e67d6299e",
"file_name": "sample string 3",
"name": "sample string 4",
"description": "sample string 5",
"file_type": "sample string 6",
"mime_type": "sample string 7",
"image_width": 8,
"image_heigth": 9,
"file_size": 10,
"date_update": "2026-09-15T22:18:13.2488042+00:00",
"date_add": "2026-09-15T22:18:13.2488042+00:00",
"dateutc_add": "2026-09-15T22:18:13.2488042+00:00",
"user_id": "5037adc7-9679-4d82-a672-1679028f5537",
"is_showonweb": true,
"file_content": "QEA=",
"modified_dateutc": "2026-09-15T22:18:13.2488042+00:00"
}
application/xml, text/xml
<company_files xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<company_id>a044eee0-ac45-45fd-a515-457e67d6299e</company_id>
<date_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:13.2488042Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_add>
<date_update xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:13.2488042Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_update>
<dateutc_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-15T22:18:13.2488042Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</dateutc_add>
<description>sample string 5</description>
<file_content>QEA=</file_content>
<file_name>sample string 3</file_name>
<file_size>10</file_size>
<file_type>sample string 6</file_type>
<id>a2bdef20-1f31-4820-97a9-dabab6528c03</id>
<image_heigth>9</image_heigth>
<image_width>8</image_width>
<is_showonweb>true</is_showonweb>
<mime_type>sample string 7</mime_type>
<modified_dateutc>2026-09-15T22:18:13.248Z</modified_dateutc>
<name>sample string 4</name>
<user_id>5037adc7-9679-4d82-a672-1679028f5537</user_id>
</company_files>