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": "07b8764f-cfe0-4d9a-a45f-3c3769927397",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "76bb141f-bacf-45bf-a2ad-2bfc8ed9fc01",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b3aba003-fecf-4c07-bf36-41c322d39149",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0d5a4c1e-cc4a-4b79-854f-18368f484b61",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "4b552162-28e1-4ad6-9239-eb51b881f4e9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "900e0646-94cf-4b52-ba38-0bce5c670710",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "23dd75ce-2cd9-4c14-8369-347e98cc4c3a",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"MeasurementValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "e00e5175-2b69-4a68-b7b6-d485d95c96fe",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"MeasurementValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e6eecf85-2c5a-4d63-abcf-0981571afac3",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-28T10:32:05.7803831-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "fafe9edf-b6e7-414c-bed4-2a9618e0dd78",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-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": "7a402bdb-be1d-436f-a358-3bfa4735bbe3",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "89379381-d382-4f86-89e5-21b115841d54",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "1b427c83-d3d1-4c8b-8249-2cd4f13095ff",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "33f26e05-86f4-4ab3-b01d-70a733fca8d3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "abd28579-7933-45a6-a621-09f45a3e2c6f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8f40294d-ef9b-4b8f-8bb7-c4f24f5bb595",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "e3795e48-18dd-4ec4-b97e-3bdf63f31cf4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"MeasurementValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "0b6dce02-c9f9-4751-b624-fcbdd1dd56db",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"MeasurementValueNeededDate": "2026-06-28T10:32:05.7803831-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "2f0d2f11-bba9-42e2-bbc1-2cc8402cfc48",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-28T10:32:05.7803831-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "a71d32e7-7dd9-47a1-a944-5eaee4c9e91d",
"CreateDate": "2026-06-28T10:32:05.7803831-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-28T10:32:05.7803831-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}