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": "c8bcf85f-d8fb-4715-8aec-0a789025f99d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "b11599b6-cb1e-47bf-b693-964061d6584b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "822f6460-5f59-4131-82a2-08376295cd25",
"CreateDate": "2026-09-28T18:03:31.2327586-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-28T18:03:31.2327586-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "b14221ad-895e-488a-9183-5a949a1edad9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "356ca22d-d07c-49b2-b86d-7b87f2688042",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ac200867-dae1-487f-a488-bf093ac068fc",
"CreateDate": "2026-09-28T18:03:31.2327586-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-28T18:03:31.2327586-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "6206ac7e-da77-4b97-a9e2-d1c1ada20f77",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-28T18:03:31.2327586-07:00",
"MeasurementValueNeededDate": "2026-09-28T18:03:31.2327586-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "13dd72b1-b3c4-470f-833e-529fa8b468ac",
"CreateDate": "2026-09-28T18:03:31.2327586-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-28T18:03:31.2327586-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-28T18:03:31.2327586-07:00",
"MeasurementValueNeededDate": "2026-09-28T18:03:31.2327586-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "67e97bfe-dfdd-4de3-b217-4e2535927a56",
"CreateDate": "2026-09-28T18:03:31.2327586-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-28T18:03:31.2327586-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-28T18:03:31.2327586-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "f74d2162-bbe7-46c9-a603-3e5a067b63b1",
"CreateDate": "2026-09-28T18:03:31.2327586-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-28T18:03:31.2327586-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": "5217fc7a-4138-404f-95b0-7f6e14d1d8de",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "6492853c-1b9d-4873-a42e-9c90a5f830b6",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "4e0ed730-afc3-463f-b8a1-c94dafd0cfba",
"CreateDate": "2026-09-28T18:03:31.2484442-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-28T18:03:31.2484442-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "d95327d4-ead4-44d1-a531-952ef4ba112e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "527284e6-28fd-46ba-9bf3-ce91585f028d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "05580f0d-f391-48ef-983f-ded128678a91",
"CreateDate": "2026-09-28T18:03:31.2484442-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-28T18:03:31.2484442-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a1150382-e7f2-4299-be97-30748c95bd5e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-28T18:03:31.2484442-07:00",
"MeasurementValueNeededDate": "2026-09-28T18:03:31.2484442-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "4f11fcac-4fe7-4671-a913-831d22984928",
"CreateDate": "2026-09-28T18:03:31.2484442-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-28T18:03:31.2484442-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-28T18:03:31.2484442-07:00",
"MeasurementValueNeededDate": "2026-09-28T18:03:31.2484442-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "734635b6-f0ae-4b31-9df0-bc079d2b8b96",
"CreateDate": "2026-09-28T18:03:31.2484442-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-28T18:03:31.2484442-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-28T18:03:31.2484442-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "acbe250c-1fce-456d-96af-a52f5a5ed8ab",
"CreateDate": "2026-09-28T18:03:31.2484442-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-28T18:03:31.2484442-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}