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": "3873f2b8-1768-489c-bd24-2f4ece2e0543",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "31877d19-5ae3-4350-921b-721876d50b65",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "5a868ce1-f549-4d90-bedd-5eb5145784df",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "90d2cdbd-7e51-4c2a-bdc4-1ddbac8d209d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "80c8b5c8-205f-43e2-8984-c98907d359ef",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "2961cc3f-bf0f-4d43-9890-df81adeec165",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "72e440d2-2fc1-4506-b424-6eadae16229a",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"MeasurementValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b8cfa3aa-e001-469d-879c-0932f57718e1",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"MeasurementValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "fc9cfbfb-35e4-47e7-abf4-29a6494b9558",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-19T14:41:34.3798539-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "9de0b086-5552-4176-b1c8-9303c56bc5fb",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08: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": "0246ab83-78f1-486e-9038-c486ca16883f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "10122565-492c-4b7d-abb5-6f5b3b8fc1ed",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d89933fe-cba0-494e-a846-acd43d88fd67",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "94c78d71-77c2-4c39-af8b-2f49f4a8d12e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "8ebcb701-0c3e-47c8-9717-b1814ecc3fb9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1f027232-ab87-4d51-872d-0dc95c2255fd",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "e2eadb76-b706-4620-a790-6a5c46682d72",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"MeasurementValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "490f629e-9473-4192-a245-990c6a9b65d4",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"MeasurementValueNeededDate": "2025-11-19T14:41:34.3798539-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "32c65e2b-630b-4e50-89be-81532e94683b",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-19T14:41:34.3798539-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "fb7ddfab-b27e-4179-953d-f2834369a8ab",
"CreateDate": "2025-11-19T14:41:34.3798539-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-19T14:41:34.3798539-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}