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": "c44dbf94-8f0b-4e75-9c2c-c39ca07ec2f1",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "1971d8b5-4c89-4b29-ac23-445d1cd26396",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "027a5e58-8b71-4a13-9c6e-c80d30cb6f2e",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "71303897-fee2-48f8-aef7-42fb50d790eb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "1015a4f3-c04a-4e98-88ae-1524607c6295",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "559ac998-27e5-4d09-b98e-9f91855d951e",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "cdc69c8b-9d98-4393-9378-29e7ef3fe923",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"MeasurementValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "cea10875-0eeb-45b4-806a-c0a93b2a726a",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"MeasurementValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6edb19fe-5ad5-4373-a722-cc78770b6ad1",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-05T06:21:15.1027729-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "7e6ec3dd-8b59-454e-9adf-27e14aa42a80",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-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": "75e441e9-d497-4b4f-94ef-0c9c150c8752",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3235c4a8-7165-4b67-b801-fd577b9d8b5e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "27f01df9-bbff-46c3-86c7-88b7650418d0",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "444f5bef-dd44-43da-8ff2-a14a2bc76196",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "c11c84a1-ef89-4198-8f34-96b7bc8703c3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "81d755df-0a72-416a-82f3-733d0555fd47",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "cd7db958-60c1-462c-933b-cc1130f455f4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"MeasurementValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3a3fca88-72dd-4f9a-a4dc-41b622863814",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"MeasurementValueNeededDate": "2025-12-05T06:21:15.1027729-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "60bb21f3-afcc-482c-ad04-c72ca5d70178",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-05T06:21:15.1027729-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "ba013cb1-e5fe-4211-9e8b-cfc87bcef4f6",
"CreateDate": "2025-12-05T06:21:15.1027729-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-05T06:21:15.1027729-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}