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": "76c5675d-fa51-48cc-96ff-c03e185346f6",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "aacebe06-d82e-4cff-b03e-8d0b7d42992f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fcd43aa2-02cf-43d0-9ae8-7e9fd14bcf45",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7d7ac2bf-5b2a-400f-a86e-91e9928d02e8",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "0784e976-4276-4b7e-b023-5afa26f64d0f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "23af3546-7ceb-4f82-a131-af2f07207821",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b2d66c2c-18ac-4cab-a3fc-6145df3ee96b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"MeasurementValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "692848af-f202-4139-a0b0-bc010f5ae88d",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"MeasurementValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "613d1533-48fe-42ae-8087-e499c4d26ed8",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-09T22:50:49.2053863-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "45870aba-0b36-4ec6-a93f-9c86eddfb190",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-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": "404d325e-1ba5-4c96-886f-da0b78d8721a",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2643eac0-fabf-4f27-b36a-c118ceac3583",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "5dc5a7f0-d222-44d7-bbf2-c495b4c4f56a",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8462900a-f496-41f9-ae16-e05e98467bad",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "34c5ad4c-c580-4ed9-930b-19f4983c4b83",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "dcfb89ee-fdbe-4fc7-b0b9-afb33daceda9",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "3e2cbbc3-9127-4489-a162-cd2ba41b0be0",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"MeasurementValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "9d76006e-c16f-4151-be43-8eea411db450",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"MeasurementValueNeededDate": "2026-05-09T22:50:49.2053863-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "bd9791f4-7cf4-477f-a5e8-a6f10bd336ea",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-09T22:50:49.2053863-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "98f21fe6-d149-4332-b0ee-f6c36fada309",
"CreateDate": "2026-05-09T22:50:49.2053863-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-09T22:50:49.2053863-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}