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": "d7867529-54d9-4b4d-98e6-45cb06f33c9b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "051d6a63-2cbb-4319-ab5b-96a463ffd860",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "d83cb31e-62ea-4729-9046-f7e134622d92",
"CreateDate": "2026-03-01T01:39:20.2568385-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-01T01:39:20.2568385-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "3efdaca4-9833-42d4-8953-bd843a873a6d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "276a01a7-fea0-4e56-a2f3-5baaa8a07ce5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "abcc5424-d616-4547-947d-5dd0dd66d0f9",
"CreateDate": "2026-03-01T01:39:20.2568385-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-01T01:39:20.2568385-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a03f4482-5ef9-4dd4-9f49-41de4d775c34",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-01T01:39:20.2568385-08:00",
"MeasurementValueNeededDate": "2026-03-01T01:39:20.2568385-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "62598d9a-6036-47bd-9243-0548cb395896",
"CreateDate": "2026-03-01T01:39:20.2568385-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-01T01:39:20.2568385-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-01T01:39:20.2568385-08:00",
"MeasurementValueNeededDate": "2026-03-01T01:39:20.2568385-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "fb98bd2b-e812-433c-ae9f-a551a1d9e161",
"CreateDate": "2026-03-01T01:39:20.2568385-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-01T01:39:20.2568385-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-01T01:39:20.2568385-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "c4b6485c-ca96-441e-835c-b33520d3cc6e",
"CreateDate": "2026-03-01T01:39:20.2568385-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-01T01:39:20.2568385-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": "eccf8095-a72b-4eec-9804-99b0ef5e6855",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "fd29c6df-3220-4071-9b9e-a62cb6d95e60",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9307df0a-ee2a-48e8-b20b-02eed827b47a",
"CreateDate": "2026-03-01T01:39:20.2723967-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-01T01:39:20.2723967-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "926efc80-a733-47ce-8e71-23dad11ff6ba",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "01f42258-bff0-4ba6-81bc-71c51f4905fa",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5d0ddaac-25af-429e-a6f1-108ce0b88c12",
"CreateDate": "2026-03-01T01:39:20.2723967-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-01T01:39:20.2723967-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "1c64b0b8-4877-4f9d-8553-848dbcb021db",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-01T01:39:20.2723967-08:00",
"MeasurementValueNeededDate": "2026-03-01T01:39:20.2723967-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "10d19da0-9f53-446f-a836-6f401d7fe162",
"CreateDate": "2026-03-01T01:39:20.2723967-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-01T01:39:20.2723967-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-01T01:39:20.2723967-08:00",
"MeasurementValueNeededDate": "2026-03-01T01:39:20.2723967-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9bb37d7f-e7f8-4d78-bbd7-60bbebaff335",
"CreateDate": "2026-03-01T01:39:20.2723967-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-01T01:39:20.2723967-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-01T01:39:20.2723967-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "87abc629-9e20-4d42-926a-60711ca5d379",
"CreateDate": "2026-03-01T01:39:20.2723967-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-01T01:39:20.2723967-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}