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": "9bf4eceb-6c70-4320-ab55-72415d8e0578",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "0324839d-a665-4553-8dae-308f265d5351",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "385cbb13-3f96-4a35-850e-943d2252967b",
"CreateDate": "2026-08-03T02:26:45.0296523-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-03T02:26:45.0296523-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "f05c9ee7-e1fc-4e69-9ba9-36ee09ff8d7e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "74b62da9-c2a6-4a3b-90cc-c827d8180217",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "b285f085-dd4b-4402-898c-852370d6c3bd",
"CreateDate": "2026-08-03T02:26:45.0296523-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:26:45.0296523-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "dfc694bb-f8a8-453f-aa17-f10483b6d491",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-03T02:26:45.0296523-07:00",
"MeasurementValueNeededDate": "2026-08-03T02:26:45.0296523-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "63ed0554-1daa-4cac-959a-4f77d1bfe7fa",
"CreateDate": "2026-08-03T02:26:45.0296523-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-03T02:26:45.0296523-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-03T02:26:45.0296523-07:00",
"MeasurementValueNeededDate": "2026-08-03T02:26:45.0296523-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f88c83c3-c4b9-42b1-9371-74871949def1",
"CreateDate": "2026-08-03T02:26:45.0296523-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-03T02:26:45.0296523-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-03T02:26:45.0296523-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "e523cb0b-007d-484f-8505-a91b0d6bb579",
"CreateDate": "2026-08-03T02:26:45.0296523-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:26:45.0296523-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": "4a0b6e82-6aa7-4ff7-9ac2-c2ca44444bf9",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2c50d1eb-ae8e-4754-aa34-3a4c5bce9129",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b6eb67d3-1e85-4eb9-b038-9a40b3bc1a72",
"CreateDate": "2026-08-03T02:26:45.0452239-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-03T02:26:45.0452239-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "19af4d6b-95ee-4fba-9246-9b75e11851ce",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "972275c5-fcc6-4643-97d4-3c1c27d1e7dd",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "01cdffcb-a1d0-452a-b802-a67910121366",
"CreateDate": "2026-08-03T02:26:45.0452239-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:26:45.0452239-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "447afa8c-0134-4c46-9b31-4197c220cde4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-03T02:26:45.0452239-07:00",
"MeasurementValueNeededDate": "2026-08-03T02:26:45.0452239-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "33b798f6-ab7c-4717-b5b8-0562d682fc1e",
"CreateDate": "2026-08-03T02:26:45.0452239-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-03T02:26:45.0452239-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-03T02:26:45.0452239-07:00",
"MeasurementValueNeededDate": "2026-08-03T02:26:45.0452239-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "6926b799-a3f4-405b-98e1-823037ad23dd",
"CreateDate": "2026-08-03T02:26:45.0452239-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-03T02:26:45.0452239-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-03T02:26:45.0452239-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "bb9afc4e-76f6-4062-84dc-436f0c317afa",
"CreateDate": "2026-08-03T02:26:45.0452239-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-03T02:26:45.0452239-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}