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": "2e60795a-0c54-4616-a025-cddac82a2502",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3d3c64a1-f521-48af-a63b-da09eab9b4ad",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ee8ef4c5-20e1-40d9-8509-5cb550d627ab",
"CreateDate": "2026-10-27T21:44:46.071527-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-10-27T21:44:46.071527-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "a754b4d3-2e2e-472b-88b1-a006576000b2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3e1e0b7a-c4ab-43bf-925c-7e7464f076e5",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1b3d78b9-9b63-47aa-b47e-44c01017711b",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "2b98daca-089a-4c50-ae9d-8e68d5b7df4e",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"MeasurementValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "93488674-ef58-4d61-970f-dad3e46a3f0e",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"MeasurementValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "4f240c0d-c9f2-41bc-bcab-2c832e712e38",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-10-27T21:44:46.087204-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "10f725c6-8aba-4021-8293-40bc47bdceaf",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-27T21:44:46.087204-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": "1dbe3fed-8fd3-4ae2-9f47-c4ec739e6823",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2df95a57-5ff8-4fb3-9e1d-cac21f8b9d0b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "397521d5-c795-465d-91b9-caa2f4f94a61",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "2ffc5ef7-e466-45a3-92c6-f2ffbf089c75",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "614e7796-ff4a-4b8d-b23a-2c5d9fd82f0f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "63bc9896-9721-413e-9a2e-d4bead37f69e",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a5b23cea-7e9f-4283-9d38-016947fa59bd",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"MeasurementValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "ee6728d7-688e-48d4-a69c-80bc68a29ebe",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"MeasurementValueNeededDate": "2026-10-27T21:44:46.087204-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "b141b082-4795-4c1b-bcd5-dd51f19dc088",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-10-27T21:44:46.087204-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3cd56b0c-c2b6-453a-800b-e6ca571e557a",
"CreateDate": "2026-10-27T21:44:46.087204-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-10-27T21:44:46.087204-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}