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": "a280859e-d08b-4301-90d5-e4b44a490f20",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "79c2e4fa-1053-4aaa-9b53-728573f505e1",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fb25737b-fdfa-43ae-bdbe-d442fe69391b",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "df72cb89-a1cd-496f-9352-1e8ae5b9fc58",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3d955cd0-91d3-4e47-9263-f2857a99160a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "450f2bbb-dea4-4f88-96de-944dfe862e01",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "5e9a215e-b1d1-4462-9d5e-8ee20f0503b8",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"MeasurementValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "625f459d-782e-4304-9cc8-36f6a9643a7f",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"MeasurementValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "179de2c3-94cd-4ee7-b647-6688bc91ee8e",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-25T05:14:54.6432525-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b6a29001-2ba2-4e11-b28f-85fa8d6aec88",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-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": "1ecc624c-f9ba-491c-b192-94aac5ea05c3",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "1f129631-3266-4021-8832-73a9e6cf5005",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "f38ea9d4-dace-461d-9dda-78027fa01296",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "6601482b-3ecc-4897-afd5-fb5207952586",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "0d94a1f1-bbe3-40a6-885a-9123248030c3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d03a840a-ecf2-4da7-8a2d-143bef8a6ca8",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "6e618222-7a8f-4153-8ddf-352e56585f69",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"MeasurementValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "210e2850-22cd-4215-a80b-6fb7dcc1b280",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"MeasurementValueNeededDate": "2026-06-25T05:14:54.6432525-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "04ee346e-76ab-47d6-b286-cdfc1da06566",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-25T05:14:54.6432525-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "f357855b-969e-40e2-a7d5-2f590a7e5de5",
"CreateDate": "2026-06-25T05:14:54.6432525-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-25T05:14:54.6432525-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}