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": "3a5ea795-c8e1-4e81-b326-f4fb7091b8f8",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "4be70b19-39a1-4596-b768-904f06c78a35",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "7b733e7d-9904-427f-99a9-2ce46193f2c2",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7894ba14-5700-491e-8eff-bf16c5512424",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "7bd640b9-3f9d-43ec-9e44-e1d76915dd2e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "621d4d6c-28c2-4b3e-bf55-d8dc679f5e82",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "d60d40d6-0052-4528-b602-37f1227f2ef2",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"MeasurementValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "2fc77d8c-f4e5-44fc-9835-437edd3e824f",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"MeasurementValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ba004cf3-eb00-4646-9a80-7b254838e550",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-05T00:31:41.3647971-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "716e75ad-96d9-406c-bfec-597e160a3ebe",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-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": "95536741-8c1a-488a-9002-5c2bb8649520",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "0d52a4a0-e740-4f41-93de-a2fbaa887a8e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "6a5d875e-0b6d-48db-a722-afe6936e42c8",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8dbd217b-f80a-4aad-abed-b3eb6b7b1d22",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "aa43b11b-95fa-4c5e-ac22-65a091fd2e3d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "461a170b-4f0c-4f14-af43-5d5cff3e8c42",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b27665e7-36a5-4a6a-bd55-0b64f4cb1550",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"MeasurementValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "20289a71-9378-4b2f-aadd-722e295cc414",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"MeasurementValueNeededDate": "2025-11-05T00:31:41.3647971-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "69e7cf74-b2d0-4157-b302-339f103ef6a6",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-05T00:31:41.3647971-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2f75bf04-aa2b-4cac-9658-b048625b50ea",
"CreateDate": "2025-11-05T00:31:41.3647971-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-05T00:31:41.3647971-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}