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": "b6cda2ec-93d4-4a48-9440-e149ef828989",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3e196882-8f2e-44ac-a46d-6ec173cbb95d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b9068544-e55b-4e17-a4fe-56f7a6d32572",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8ce8c1ca-111e-403e-98e0-c5bf34af3cd4",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a8b1c215-d0c5-4084-a2ce-c8f42a852901",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "a03d5b32-9ab7-4b43-b842-5caabfc565a9",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "0de5c1d4-fbce-4768-bdc3-6a0afb85e034",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"MeasurementValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "cc8e644f-b39d-4598-9ee1-588c79b4752b",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"MeasurementValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3c3e3d78-4821-4730-b00f-9510b0a8967f",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-13T14:53:12.7036002-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5c684ed0-9dab-4d44-92de-ac3cfb0908bf",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-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": "8ee1119e-11b8-40b2-b6c3-1e762cea86d6",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3a93a39a-e313-4ed5-9a79-3dbf0dfa07e2",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "07abfab2-6d7e-487b-85cb-23f89d105e99",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "5ad58c4e-d568-40d5-8f34-56e57eebe1cf",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b45b5f9e-c19c-47ab-b1bd-122b62a76e09",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "2e251dac-970e-4738-9684-03ccf689a14a",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "ff8698f9-3f47-4634-9029-8d77b9519e75",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"MeasurementValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "2b76eca5-672c-4751-9014-0f50a69a53b7",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"MeasurementValueNeededDate": "2026-03-13T14:53:12.7036002-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1647fe39-96ba-4bfb-8154-f33af0b118bb",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-13T14:53:12.7036002-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "e6f21a50-e00b-4a9d-ad55-d9c87c6c7b00",
"CreateDate": "2026-03-13T14:53:12.7036002-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-13T14:53:12.7036002-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}