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": "b96db7c5-dc75-4200-b898-0397cb652b26",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5dae7221-c5f5-455b-9b2f-c35fc62e1628",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "1629dcae-4993-4d58-b376-bd1033bff6a9",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bed55d63-1efe-4cb7-97ab-0fbf457276eb",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "66b5257d-f9cf-48d4-906d-9d639f8d0186",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "487c7cdf-3606-4fe6-9a2c-46fd7e5415d0",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "96708b72-4efc-44c2-8af2-4087523fdf9b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"MeasurementValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "90f7b1d3-9e2d-4982-badd-ba96d03c69b4",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"MeasurementValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "f61c208f-a6d4-4df1-bad1-cca2c8a6c804",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-19T01:24:20.2715722-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "e6089340-11d7-4b7d-963e-641e462fb7fa",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-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": "0bbf3b8f-f5c4-4acc-867d-b5daafdb15ca",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "fa67a119-a446-4a9b-add8-88377605ffea",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9e6f0bf1-6182-4cbb-b44d-9ed3a87246cb",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "6d1af644-0aa5-496d-ba81-04daa3a01998",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "cec7fe88-12d4-4c19-acfb-204ddd96dd89",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4422b77f-f7b8-49fc-b6f1-67e2ac0895d5",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "5046b9b2-e147-4c33-bd9d-21fe963e0951",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"MeasurementValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3a2fa619-f9ac-461a-9228-2ad7100c959a",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"MeasurementValueNeededDate": "2026-11-19T01:24:20.2715722-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b8b001f4-08a6-4cc8-a4fa-0360d0f38ebb",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-19T01:24:20.2715722-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2191b3e6-fb07-4812-bd04-21f58cff0af9",
"CreateDate": "2026-11-19T01:24:20.2715722-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-19T01:24:20.2715722-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}