Creates or updates a 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": "b102bd2d-3c7b-4e62-8527-4d41457b16c6",
"company_id": "3b9ed8df-e381-40b4-a277-6df8a4b69e9f",
"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-16T10:14:17.7145796+00:00",
"date_add": "2026-09-16T10:14:17.7145796+00:00",
"dateutc_add": "2026-09-16T10:14:17.7145796+00:00",
"user_id": "7985d55b-15ba-4613-aea0-7877e4300723",
"is_showonweb": true,
"file_content": "QEA=",
"modified_dateutc": "2026-09-16T10:14:17.7145796+00:00"
}
application/xml, text/xml
<company_files xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<company_id>3b9ed8df-e381-40b4-a277-6df8a4b69e9f</company_id>
<date_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.7145796Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_add>
<date_update xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.7145796Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_update>
<dateutc_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.7145796Z</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>b102bd2d-3c7b-4e62-8527-4d41457b16c6</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-16T10:14:17.714Z</modified_dateutc>
<name>sample string 4</name>
<user_id>7985d55b-15ba-4613-aea0-7877e4300723</user_id>
</company_files>
Response Information
Resource Description :
IHttpActionResult containing the saved 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": "c8f9e11f-2cae-444f-891f-f664e518a8fb",
"company_id": "e5244654-aaaa-44e6-a022-d78132bc80fa",
"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-16T10:14:17.8119148+00:00",
"date_add": "2026-09-16T10:14:17.8119148+00:00",
"dateutc_add": "2026-09-16T10:14:17.8119148+00:00",
"user_id": "c1991f23-af0e-4703-b505-d68e720a6e31",
"is_showonweb": true,
"file_content": "QEA=",
"modified_dateutc": "2026-09-16T10:14:17.8119148+00:00"
}
application/xml, text/xml
<company_files xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<company_id>e5244654-aaaa-44e6-a022-d78132bc80fa</company_id>
<date_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.8119148Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_add>
<date_update xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.8119148Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</date_update>
<dateutc_add xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2026-09-16T10:14:17.8119148Z</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>c8f9e11f-2cae-444f-891f-f664e518a8fb</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-16T10:14:17.811Z</modified_dateutc>
<name>sample string 4</name>
<user_id>c1991f23-af0e-4703-b505-d68e720a6e31</user_id>
</company_files>