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": "5a89f202-254e-4e82-9cf2-fba83ea9b80a",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "cf5560af-dcc2-498a-a185-5f975210ef7e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fb829097-3a4b-4816-b49e-2ad2000b7bfa",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8e5c764c-ae6d-4850-a6a5-07bc1fcbcacd",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "d6d71991-4709-4539-9124-763562ff1610",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "07ab5e66-5b04-4de7-807f-0036b73a6b42",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b8d2b5fc-ba38-4630-ac7b-11efe0a129cc",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"MeasurementValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c63b05ba-3c1c-42cb-97e1-385a3fb7e687",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"MeasurementValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "faa64ef2-0eb3-413c-8062-1e617d3d4ea5",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-01T15:13:43.6195552-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "f5b5138f-6f2f-496c-92b7-64e576b63e33",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-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": "822cd8b1-dc13-4ba6-a338-1763679630bd",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8817de3b-e48b-48db-a592-92a57c3fe79a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "33b634fb-55a4-453c-9493-59bf71514cf2",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bdf63781-3232-4ebd-9f60-69bb696f619f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "69ef3dff-1e01-4d76-b414-7fabe94b043c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "82ad48db-4c1f-4b34-a872-d11a7f456513",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "7a2d03d2-104a-47da-8c62-85e0637e5ef9",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"MeasurementValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "a200e53e-de8a-4660-9db5-f9bf2fcfed90",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"MeasurementValueNeededDate": "2025-12-01T15:13:43.6195552-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "0f229f9c-2701-406a-8e28-06a5649ee85c",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-01T15:13:43.6195552-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8608caea-0b3e-4b6c-bc7c-2fa124e9141d",
"CreateDate": "2025-12-01T15:13:43.6195552-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-01T15:13:43.6195552-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}