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": "cfca6cfb-19e2-413b-98df-52478d06a698",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "4f23e892-588b-4ed6-8a75-1676e260acc6",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "98705746-9b70-4966-a97e-26de92b43f45",
"CreateDate": "2026-11-21T07:26:55.3738523-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-21T07:26:55.3738523-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "51975848-8858-4c94-a479-89866caec8a5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "62b23b9e-7417-48be-8361-0426c2d994fd",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "eb0b484a-0130-4a04-b0b6-2faad1e3d779",
"CreateDate": "2026-11-21T07:26:55.3738523-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T07:26:55.3738523-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "12c19446-1a04-4085-80fb-4f68f78cb231",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-21T07:26:55.3738523-08:00",
"MeasurementValueNeededDate": "2026-11-21T07:26:55.3738523-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "723df314-a030-4ce8-a849-b2394439feb4",
"CreateDate": "2026-11-21T07:26:55.3738523-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T07:26:55.3738523-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-21T07:26:55.3738523-08:00",
"MeasurementValueNeededDate": "2026-11-21T07:26:55.3738523-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ce997e1d-6066-4df3-9cdc-8fc82ec0e988",
"CreateDate": "2026-11-21T07:26:55.3738523-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T07:26:55.3738523-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-21T07:26:55.3738523-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "76d61463-a1cc-4282-ba03-36d04f174d13",
"CreateDate": "2026-11-21T07:26:55.3738523-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T07:26:55.3738523-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": "168067a5-3cb6-4335-a8ff-884027a3f8ef",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5be49d02-bef5-423a-864f-4a02b5983396",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "7f337a46-690c-41e3-9e30-23dc4bd6bec5",
"CreateDate": "2026-11-21T07:26:55.3894495-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-21T07:26:55.3894495-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "1233be85-f956-4398-bb02-c231ed3fa8b7",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "09da2c1d-0b1b-4d46-93d9-a052b4021b56",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "8f101d05-33d2-4358-99aa-4c03a656c407",
"CreateDate": "2026-11-21T07:26:55.3894495-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T07:26:55.3894495-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "f13a3fb6-8b9a-4839-a646-6a0551f900c4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-21T07:26:55.3894495-08:00",
"MeasurementValueNeededDate": "2026-11-21T07:26:55.3894495-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "b97e40bd-fe46-4fcf-bbce-5b74af4e8cd5",
"CreateDate": "2026-11-21T07:26:55.3894495-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-21T07:26:55.3894495-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-21T07:26:55.3894495-08:00",
"MeasurementValueNeededDate": "2026-11-21T07:26:55.3894495-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8e7a66f3-cfdf-4f56-b25d-baa4fb598d16",
"CreateDate": "2026-11-21T07:26:55.3894495-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-21T07:26:55.3894495-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-21T07:26:55.3894495-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5639a2ef-7a6d-4586-835b-3c08cd412355",
"CreateDate": "2026-11-21T07:26:55.3894495-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-21T07:26:55.3894495-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}