POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| AttachmentId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| AttachmentCategory | AttachmentCategory |
None. |
|
| Asset | Asset |
None. |
|
| FileType | string |
None. |
|
| FileSize | integer |
None. |
|
| UploadDate | date |
None. |
|
| Content | Collection of byte |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AttachmentId": "b01b2aa1-4d14-42d8-99c4-4488abbad06e",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "97c857ee-c834-4dda-8696-257404421fe1",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3404945c-8028-4b82-a8f6-72c972ffd143",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "27c57a5d-ed47-4f40-ba74-96d3b04da33f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "0efb3f37-fbd3-4ca2-8e0b-c757a3e63a57",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8dcfd24a-00df-424e-94f0-ac930e395ad4",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a458ac4f-d483-4a95-a3b5-4a98427df29c",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"MeasurementValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "a0ab4367-5171-4ebc-b7d4-ba1171b17e12",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"MeasurementValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "992c1af7-1caf-43fb-8acb-065d9c538c26",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-16T00:30:49.7374655-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "85449ae0-28f3-4f80-8370-56c98a2ff2f0",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 7"
}
Response Information
Resource Description
On success, the created attachment. The Content of the attachment will not be filled in.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Attachment |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"AttachmentId": "8a001d29-5f7b-49aa-a920-e7039daf8001",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "631185c1-f545-49fb-b0b0-1845408d1b29",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "83b7fe31-3c59-44f7-aec1-6a67450b4dac",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a2c7ee84-770e-4fae-9dfb-3abdc4fd4b9b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "7ad725c3-a0bb-4c1d-b13a-a9ea17c5740f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "18916310-8e34-4c50-a877-4c636053744b",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "cc0858cf-a0f5-4d44-a742-5a8201e9d740",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"MeasurementValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "8d69addc-88e7-4405-b422-d655848aa14b",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"MeasurementValueNeededDate": "2026-08-16T00:30:49.7374655-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1d322b2b-bf58-4e9b-bc38-665e2e3d3f12",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-16T00:30:49.7374655-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2ef9e120-2bde-4087-89eb-4939fb3ff401",
"CreateDate": "2026-08-16T00:30:49.7374655-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-16T00:30:49.7374655-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}