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": "7ff38f6e-3d9f-42c5-8f7d-f6d2f0b247d8",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "12cc6a73-5edc-4699-a395-efa0146ec4aa",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "c4e3e22d-c317-491e-b653-e2c27b178ac1",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "1addea25-af3b-4978-97fe-5d1b0070981a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b4294baa-5019-4f81-8860-3e6dbfa2c386",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1b11fcca-3509-403a-858e-b28c052118fb",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "bc472028-c95b-48fb-bb02-7701bcacf66b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"MeasurementValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "2f2cc04e-0094-48e8-ba97-4e337cb622dd",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"MeasurementValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "666936f1-8b35-4dbe-8ec4-e9e49e8d2c85",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-23T21:31:49.763249-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "d6ad8dc9-36a4-4fa4-9da0-17b9d836b926",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-23T21:31:49.763249-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": "0fe9f6ae-bc74-4932-bae4-4f2c46c50f24",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "c83ec518-52c3-4be6-acd7-e292dd84431a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "4ae1db33-4b70-4ecb-94d2-e5faa92963d3",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "9917fc5a-6a14-4d5b-8f50-5ff24c2b655a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f781cb2e-f942-4139-8a12-219710e1d632",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "16d2f48e-8fcf-4483-985e-d4f32aa803e9",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "fcaac343-3f74-4838-8d3e-d7819479a2c1",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"MeasurementValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "1921ebd9-ba61-40e8-92e0-f0f402617382",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"MeasurementValueNeededDate": "2026-03-23T21:31:49.763249-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f8156aa6-9c40-4ee4-9319-575c7343a858",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-23T21:31:49.763249-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "fbe8b6c7-1cc6-4b15-a542-8589e7306306",
"CreateDate": "2026-03-23T21:31:49.763249-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-23T21:31:49.763249-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}