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": "79f8ebc5-48a1-4938-9fca-09b3cfbacf13",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ab6c8ba3-4873-4310-bc13-41491c6268e3",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "0d5a76f9-8a02-4033-b597-a2f65ad7aa70",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "80b6b39f-4afa-42b5-8fba-7ec68abff673",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "82234e1a-1b65-4b88-907e-3294104d9532",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "70e58925-c3df-443e-9463-8cf4a1465f10",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b2d9647b-9958-44cb-a1d3-8a59108a5865",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"MeasurementValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "c4463aee-bfa0-414b-917a-b5aca1508c6b",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"MeasurementValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "72c56dcc-69a8-48d4-b03b-b8e346aa9bae",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-24T15:02:17.1975436-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "d75e3854-81bc-46d3-96bf-5a76150fd1ee",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-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": "5d6340b8-8ef4-44d0-befd-7885a3403572",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8161b26d-e327-42af-bdb3-390757577a94",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "a13a8e24-c27a-4f03-85de-3adaea722152",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "eac9be60-01f0-416e-9cfd-60ba964e727e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "a1580474-16e4-40d3-8ded-bd51ab97b05b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "dcaa2498-fb27-4c72-81c6-3835414beae3",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "4cade407-70d4-440a-959b-138148fdc249",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"MeasurementValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "65ade987-9d2c-46a6-97f7-93ad56c38a4a",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"MeasurementValueNeededDate": "2026-05-24T15:02:17.1975436-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "53e8eef3-7fe4-4834-8936-abc61b417d48",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-24T15:02:17.1975436-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1bc90fcc-2243-4fb3-a52b-39c93deca05a",
"CreateDate": "2026-05-24T15:02:17.1975436-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-24T15:02:17.1975436-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}