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": "c838095d-10ad-4cde-b6ce-81b485afc868",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "0a656eea-a301-4cae-8db4-362193f785c5",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3a09ba52-8241-4d49-8b38-5f5215efad4f",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "40d66eb0-4b30-4a57-a83e-02ffd4fc9ac3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "6732213d-f9e0-4e8e-9b78-6f26fec29e47",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "530c4fe5-19e5-4363-b438-ae85e4cffd5f",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "541488fb-3aa3-40bb-9d07-04771b92cd64",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"MeasurementValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "bd0c53ee-a4b3-4fda-94d1-46622dfa49f1",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"MeasurementValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d778677f-3c88-4087-b08d-cdd64c160b07",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-05T17:03:36.4582758-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1ab12069-86fa-4a4d-bf14-2782bf44defb",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-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": "35ce64db-bd9a-4d57-bf13-0dfaf8f19b0a",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "e60f7b4f-aa0f-401c-b135-c2bc7b2c4960",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "304aeb41-7490-4fa5-83fe-e7704ebefc6e",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bbfdd35a-3e83-4b54-97bb-4f4b03a7183c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "689b7086-eb98-4b8d-b714-c615332cb7c2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5eea0617-04fb-45fe-97e6-31d4b3bb4ab0",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "4908f64c-d363-4914-ba9f-77707edb6e1f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"MeasurementValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c65c33b8-7ec6-4b90-b3d9-a0df77bde75b",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"MeasurementValueNeededDate": "2026-02-05T17:03:36.4582758-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "39504a24-5cf7-4d92-8738-8b9797fa54a6",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-05T17:03:36.4582758-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "55c2274a-65ec-454e-ac0b-7db0d9c30f8f",
"CreateDate": "2026-02-05T17:03:36.4582758-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-05T17:03:36.4582758-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}