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": "61f36b86-a4f6-48b5-a06a-ae8da55080ac",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "48cf856f-8993-4a4c-8035-2042314d07a3",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "55c080b8-f5a9-415f-a45a-7cce96c4bcc3",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "235d9f11-d715-456b-9cbc-94dbadfc00d1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "84b593b9-7bc1-492a-a28a-c5a23e53bc0b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ae0cab02-7d03-402e-887a-0f5e7624f77b",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "3aaeed04-62ee-4b2a-9942-c2b2abd3d5ca",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"MeasurementValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "982df069-b381-4bca-aa60-c0a2acd14e7a",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"MeasurementValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d881fe1e-ccba-4674-8759-5a56b672e2db",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-20T22:12:12.7626211-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "dde4ba5b-ae53-4ad6-8139-b622c33c6e9a",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-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": "32c57345-496a-4e2c-a655-315659cec06b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8e398085-1586-4de5-bac4-a735b88835f4",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3284b1ef-3e2c-4f76-a3c8-41346ed00907",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a62a0033-de98-435b-ab94-a416951cebbe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "5e38267f-3a68-453e-b43e-7493ef52c351",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5e77426d-f809-4d64-8a9c-012121eb5be6",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "5994ba6d-7320-4e85-a84b-1b9a51177699",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"MeasurementValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "e8f26f91-204e-47d8-8dd1-82736d779648",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"MeasurementValueNeededDate": "2026-05-20T22:12:12.7626211-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "afe6efc4-5c3f-4778-862c-0264de6ba68c",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-20T22:12:12.7626211-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1fb1c61c-c946-4ae4-9840-4711c5fe1c19",
"CreateDate": "2026-05-20T22:12:12.7626211-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-20T22:12:12.7626211-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}