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": "7512f311-2f30-4b93-b349-79c8e3badd01",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "495f0b71-79ac-44cf-ac4f-6bcc6735258e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fed27613-3eab-42ac-9c49-f9d4809e4a40",
"CreateDate": "2026-02-10T19:09:56.746674-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-10T19:09:56.746674-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "61b7d86b-60e7-4165-972c-6f506a61c870",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "4ef090ad-0443-4d43-89e0-fdca84cc9c83",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4478cf02-a28a-4265-9455-a68013202273",
"CreateDate": "2026-02-10T19:09:56.746674-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-10T19:09:56.746674-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "ebb96627-a98e-4191-aa19-3db526a28e95",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-10T19:09:56.746674-08:00",
"MeasurementValueNeededDate": "2026-02-10T19:09:56.746674-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "86b0f105-8548-465f-8cc9-a9ac3c347eea",
"CreateDate": "2026-02-10T19:09:56.746674-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-10T19:09:56.746674-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-10T19:09:56.746674-08:00",
"MeasurementValueNeededDate": "2026-02-10T19:09:56.746674-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ee9c5ae9-c582-453b-9ab3-b50e28ecd3db",
"CreateDate": "2026-02-10T19:09:56.746674-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-10T19:09:56.746674-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-10T19:09:56.746674-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "ae3b2743-4dad-4856-96d2-ed795e151768",
"CreateDate": "2026-02-10T19:09:56.746674-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-10T19:09:56.746674-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": "382fc47b-0964-41f7-90c2-1821fa169268",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2ad42af8-8ecd-455f-a54c-72645fd2ce36",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "7827cdd8-af57-49ce-a75b-adb7b1a09d8d",
"CreateDate": "2026-02-10T19:09:56.7622926-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-10T19:09:56.7622926-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "adee18c2-2b9d-4b32-8af3-ff3df2a580f8",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b5df4761-2ed4-455a-a33a-f2ffeddea301",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "acff21ee-03fe-4eb1-a4a6-27f8d6f8e763",
"CreateDate": "2026-02-10T19:09:56.7622926-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-10T19:09:56.7622926-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "e6a791fa-4445-47ab-bfba-dece5cf4d20d",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-10T19:09:56.7622926-08:00",
"MeasurementValueNeededDate": "2026-02-10T19:09:56.7622926-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "9ec95941-d003-47ee-8a19-b02df870235c",
"CreateDate": "2026-02-10T19:09:56.7622926-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-10T19:09:56.7622926-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-10T19:09:56.7622926-08:00",
"MeasurementValueNeededDate": "2026-02-10T19:09:56.7622926-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1dcf6c85-0157-4b6f-878d-21cd9d3e0242",
"CreateDate": "2026-02-10T19:09:56.7622926-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-10T19:09:56.7622926-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-10T19:09:56.7622926-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "f7588d09-2b2d-4c3a-9b27-30f14bfe43c4",
"CreateDate": "2026-02-10T19:09:56.7622926-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-10T19:09:56.7622926-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}