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": "08522b38-27e7-438b-807d-2062ecae440c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "fee1f488-e76a-42dd-9a10-ad802cd5b99b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "81ec64c3-01a7-4c0e-b957-fcaee8c0df89",
"CreateDate": "2025-11-14T22:56:51.9783214-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-14T22:56:51.9783214-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "5a9088d3-904c-4ab7-90bd-7926edf2486c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "52e12be7-d787-4c74-b7a3-98e8f64c84ee",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ec5639d8-64a8-42c8-8c13-31bd2b68ced5",
"CreateDate": "2025-11-14T22:56:51.9783214-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-14T22:56:51.9783214-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "1da70880-30b4-4916-ae68-d2ed793f3f16",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-14T22:56:51.9783214-08:00",
"MeasurementValueNeededDate": "2025-11-14T22:56:51.9783214-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "602260c3-c52e-495b-9d64-8666e21ff4b9",
"CreateDate": "2025-11-14T22:56:51.9783214-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-14T22:56:51.9783214-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-14T22:56:51.9783214-08:00",
"MeasurementValueNeededDate": "2025-11-14T22:56:51.9783214-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "34d341fd-d278-4206-b390-93a57113fce0",
"CreateDate": "2025-11-14T22:56:51.9783214-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-14T22:56:51.9783214-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-14T22:56:51.9783214-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2752bf97-8401-46ba-9f70-abf89a18feb5",
"CreateDate": "2025-11-14T22:56:51.9783214-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-14T22:56:51.9783214-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": "c72682a6-cf21-483b-9d6c-780f1c5044f0",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "0db778ee-afa4-4102-9d91-9f108ffde0e2",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "55e240f8-5ab6-4ac1-92a7-bdee41a1b205",
"CreateDate": "2025-11-14T22:56:51.9939044-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-14T22:56:51.9939044-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ac6b781a-f6da-4471-982f-5d4a71e8300d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "7784acd9-782e-4da3-b742-bcff8767d6df",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5e7b64b1-b859-4de0-bbc5-156bd707f752",
"CreateDate": "2025-11-14T22:56:51.9939044-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-14T22:56:51.9939044-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "f2982a57-d28c-4d8f-ac0e-e34a08483dce",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-14T22:56:51.9939044-08:00",
"MeasurementValueNeededDate": "2025-11-14T22:56:51.9939044-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "23ddf660-067a-4298-84c9-e50e80830c51",
"CreateDate": "2025-11-14T22:56:51.9939044-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-14T22:56:51.9939044-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-14T22:56:51.9939044-08:00",
"MeasurementValueNeededDate": "2025-11-14T22:56:51.9939044-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "e9885da3-9663-454d-a70e-0b6f9e3fcdd3",
"CreateDate": "2025-11-14T22:56:51.9939044-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-14T22:56:51.9939044-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-14T22:56:51.9939044-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "38f7be87-a81b-47a3-af89-3b0278adb192",
"CreateDate": "2025-11-14T22:56:51.9939044-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-14T22:56:51.9939044-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}