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": "071de396-7a63-4614-b0a4-244a73ed4dba",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5d085ede-4ebb-42c4-be62-70b2a67fb6e4",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "c8b14d99-6fea-4076-a3d4-124d08b8d1cc",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "80a3a749-a02c-4efe-9598-8fdbd8afa377",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "63b4eb57-f0d0-4d1f-a7d7-aeed97145d6e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "c58abe6b-08b4-404a-9663-f0a57769e900",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "2f0b01b5-a875-4b76-8b8e-4599bd2722da",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"MeasurementValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "85eb2811-27d9-4823-ab14-7995204a19f0",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"MeasurementValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6fdb0a5d-a7e4-4e50-b0ea-4b1b38299418",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-01-19T09:49:23.6028913-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "567aa9ad-8a0b-4c21-a4f1-8d44437d2232",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-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": "9968694e-630e-4475-9abd-0bc4e405dc0c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "88af45eb-d9b1-4347-aa40-59c5c94c2707",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "1f283332-89d7-4e0b-b9e4-49e4c8b67f69",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a0a71912-c2eb-459c-8337-c51426c820da",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f10d7594-5e3d-428a-9117-c17c100b612d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "b2f3207a-f02c-403f-9646-680b0fbdf7a5",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "974bc9c0-6e8c-45ae-a1b7-57961885b35d",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"MeasurementValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c0f0e7a8-9b10-4534-a947-4df1a441ffc2",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"MeasurementValueNeededDate": "2026-01-19T09:49:23.6028913-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "7e0bf2be-76ac-4815-810b-86e50a02deaf",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-01-19T09:49:23.6028913-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "df4d57a0-5816-4686-afff-78b16bea9edd",
"CreateDate": "2026-01-19T09:49:23.6028913-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-01-19T09:49:23.6028913-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}