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": "41ae7dd4-6c08-40b4-81c1-a61df73aca6f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ee7de3b0-59d5-43b9-b2bb-c23e036b8bcf",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "24806906-7b92-45ae-9933-babe4163be63",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7a357055-0141-41ac-8239-7627bfdaf5b1",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3cf8a1d3-0de8-4d0f-adbe-764857f5e759",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d5ef0d53-fe1a-4ca4-8ed6-2fa233d9fe1a",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "c7c96342-1df2-4866-b6c6-5190901188ac",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"MeasurementValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "cf7802e3-512f-4680-a5e2-f4cb2f63473b",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"MeasurementValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ccffa686-b318-4c66-ade2-f73d91d1e786",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-10T05:00:49.3078049-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "025fc835-d4c8-49a5-b484-a5808eee34fe",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-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": "c7c9ab1d-0bc4-4a2e-9d14-9d18ce8f31ac",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "4fb9fcf9-1641-4305-a545-085e0991e729",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3427fdd1-62ff-4f1d-9ba5-af46827d16b4",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "41982c94-06c6-4384-8f0f-b95981b711d6",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b69ae308-65c5-4f08-9afb-13f1a659cc6a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f1f9a90b-5a9b-4ebf-b39b-d49c4a087c82",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "322393ad-9bdc-458b-b15a-392b9ea54173",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"MeasurementValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "e05edb86-1ceb-471e-8ddb-3169942fb385",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"MeasurementValueNeededDate": "2025-12-10T05:00:49.3078049-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9ed06aec-84a9-4e73-9143-585fd0bbe1a3",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-10T05:00:49.3078049-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "c8639d89-e972-4d94-8f4b-98c434ac86e7",
"CreateDate": "2025-12-10T05:00:49.3078049-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-10T05:00:49.3078049-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}