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": "9f51f789-3df7-4daa-b852-ab087b36ad12",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "23e96f3c-7cb1-46e6-ac7e-6454df8aa43e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "bcf4fd33-1e52-4d7f-b260-629e95ad43e3",
"CreateDate": "2026-08-12T11:15:24.6049025-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-12T11:15:24.6049025-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "41567e02-6092-45f4-a6a3-8eb921eb53ac",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "8e9ec93e-80e9-4299-9ed9-499679574cf2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1837c537-324a-42ee-9d8b-bb2063314210",
"CreateDate": "2026-08-12T11:15:24.6049025-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-12T11:15:24.6049025-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "77518a4f-435f-47dc-8f05-a788f2c129b3",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-12T11:15:24.6049025-07:00",
"MeasurementValueNeededDate": "2026-08-12T11:15:24.6049025-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "bb22cfac-538a-4e4d-93f1-21c94c4449c3",
"CreateDate": "2026-08-12T11:15:24.6049025-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-12T11:15:24.6049025-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-12T11:15:24.6049025-07:00",
"MeasurementValueNeededDate": "2026-08-12T11:15:24.6049025-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "0430e7f1-272b-4efa-aae2-84c11ee53a5b",
"CreateDate": "2026-08-12T11:15:24.6049025-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-12T11:15:24.6049025-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-12T11:15:24.6049025-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1c4de576-0fc6-40c0-831e-47f32c16daeb",
"CreateDate": "2026-08-12T11:15:24.6049025-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-12T11:15:24.6049025-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": "b50e4351-7174-4d9d-8d07-6b0fa16d80d1",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "d6003f30-1eb9-4f33-a11e-498c63ceff9f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "daea6da4-17b2-4904-b9b0-4424c34a60f2",
"CreateDate": "2026-08-12T11:15:24.6205887-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-12T11:15:24.6205887-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "00482f02-3eed-49ea-a69b-3dfaa9d9add0",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "94aa287b-a97d-4929-8067-24f6f3bb7cfe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "051463f3-8679-4ac8-a370-e634e899b30e",
"CreateDate": "2026-08-12T11:15:24.6205887-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-12T11:15:24.6205887-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "cd545e46-b2bd-4c27-869c-0b47bb5546fb",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-12T11:15:24.6205887-07:00",
"MeasurementValueNeededDate": "2026-08-12T11:15:24.6205887-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "2d8d5165-2181-4f52-9aa5-327a77e27b38",
"CreateDate": "2026-08-12T11:15:24.6205887-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-12T11:15:24.6205887-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-12T11:15:24.6205887-07:00",
"MeasurementValueNeededDate": "2026-08-12T11:15:24.6205887-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "49d882a8-040f-437e-929b-97e685cf8e27",
"CreateDate": "2026-08-12T11:15:24.6205887-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-12T11:15:24.6205887-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-12T11:15:24.6205887-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3b8f4ada-9880-426a-871e-1d5d6ee3514f",
"CreateDate": "2026-08-12T11:15:24.6205887-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-12T11:15:24.6205887-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}