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": "9525e496-38b0-4530-8b79-3f1b01b600d7",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "f3481fc6-82f8-4af8-888b-afdbc620d3c9",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "358cbcb0-5670-43ca-b344-0a4b195d5052",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bc9604c8-4f3f-4fb3-814f-92c76b647896",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "c25d42c7-17f0-4b29-ba77-65600a09c907",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "49eeb38c-8168-4902-a020-285cf4712427",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a10eca0c-051f-405a-8b81-6e4b6f318c2e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"MeasurementValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "266fb755-bf12-4161-b65f-67836ea68d0d",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"MeasurementValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "4ba2985e-1e0b-47d7-a004-6997a73cce4a",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-21T00:23:50.2907283-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "e5dd266e-435f-42d1-a0b0-5d55e6d5d050",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-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": "04893994-f2a1-406c-86a0-9c5171f5dbe5",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "432af5e1-c7eb-4334-9462-54f8106b5cc3",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9d041f35-d0fd-4f8b-9eec-ed9f76463d99",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "cc35ced1-88bc-40b7-9d7f-fdf2431bb089",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f275d110-6087-4ca7-8e97-d913d3db08ac",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5973dd48-9065-4f18-aa1d-c287cc4bbdde",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "498a1384-0b24-4b22-92b6-b721d2fbc203",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"MeasurementValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3e694457-6912-4731-b433-964df4080ab3",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"MeasurementValueNeededDate": "2026-07-21T00:23:50.2907283-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "5b2b3641-bc89-4cef-ae2c-2431c5d54a87",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-21T00:23:50.2907283-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5a14fd03-ee76-40d1-ac0a-6d2d56a66f40",
"CreateDate": "2026-07-21T00:23:50.2907283-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-21T00:23:50.2907283-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}