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": "d775c61c-5e99-48e5-8ccd-7ada4823adf1",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "08f2b236-ba2e-4068-b636-b824bfae17e7",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "2acf4587-5b4a-4800-aaae-e122ebdbec00",
"CreateDate": "2026-09-02T00:32:44.3130084-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-02T00:32:44.3130084-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "4ec68286-4f9e-4c68-97b8-ccf8a33a2f5a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "116e440a-8f02-40ef-bab7-7846b892bc26",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6ddc1179-66e5-45e2-a9ba-b19fe4f37f65",
"CreateDate": "2026-09-02T00:32:44.3130084-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-02T00:32:44.3130084-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "75b2196b-3234-4fb2-a56c-ff73b5982897",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-02T00:32:44.3130084-07:00",
"MeasurementValueNeededDate": "2026-09-02T00:32:44.3130084-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b6315c95-7a39-4c81-802c-bb7afc427f61",
"CreateDate": "2026-09-02T00:32:44.3130084-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-02T00:32:44.3130084-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-02T00:32:44.3130084-07:00",
"MeasurementValueNeededDate": "2026-09-02T00:32:44.3130084-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "feaa2b91-733c-4b2d-a9c5-545dbb8a9438",
"CreateDate": "2026-09-02T00:32:44.3130084-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-02T00:32:44.3130084-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-02T00:32:44.3130084-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "7d898b30-d83d-470d-b7e8-9b6e449a284d",
"CreateDate": "2026-09-02T00:32:44.3130084-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-02T00:32:44.3130084-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": "b62cb089-b69d-4af3-87d5-393bf776120b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "099bbc3b-d9fc-403f-8d35-806dab3ae318",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b510ecfc-feff-4369-9202-f6a1672af8cf",
"CreateDate": "2026-09-02T00:32:44.3286312-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-02T00:32:44.3286312-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "00e0d520-51f0-4fce-b675-2b81fd71676c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "2f1c1211-2b8c-4f28-bd8b-bec5ee150ce2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "a7d24516-89be-4108-b64d-eba2f5b021d7",
"CreateDate": "2026-09-02T00:32:44.3286312-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-02T00:32:44.3286312-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "d42f8926-cd51-4847-a7ce-62c8366660e9",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-02T00:32:44.3286312-07:00",
"MeasurementValueNeededDate": "2026-09-02T00:32:44.3286312-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "61713515-1324-4d66-8e1e-ce6cc4de02ad",
"CreateDate": "2026-09-02T00:32:44.3286312-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-02T00:32:44.3286312-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-02T00:32:44.3286312-07:00",
"MeasurementValueNeededDate": "2026-09-02T00:32:44.3286312-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "37beb53f-175d-431c-9390-106c7eed921e",
"CreateDate": "2026-09-02T00:32:44.3286312-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-02T00:32:44.3286312-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-02T00:32:44.3286312-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "73b0d3f7-cf02-407c-816e-9ba3303eb986",
"CreateDate": "2026-09-02T00:32:44.3286312-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-02T00:32:44.3286312-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}