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": "f793d6e7-4438-47ca-81d2-ec954a6266b8",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "a006744e-0dde-4b3a-a4d7-6214333e27f2",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "3c0d2eee-5ae3-4fe0-a9c6-70b8968b8cc2",
"CreateDate": "2026-09-13T05:31:09.284197-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-13T05:31:09.284197-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "1df0a9a2-65af-49cd-b37a-d80b48e5155a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "68906b84-507d-4a81-bcbf-297125bd364d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1856177b-888f-46a3-b216-6af9dc0f7fb0",
"CreateDate": "2026-09-13T05:31:09.284197-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T05:31:09.284197-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "266b049c-c4fc-48a0-90f8-40841a88805b",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-13T05:31:09.284197-07:00",
"MeasurementValueNeededDate": "2026-09-13T05:31:09.284197-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3e48f0d8-6881-4ac5-89fb-d571611e8369",
"CreateDate": "2026-09-13T05:31:09.284197-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T05:31:09.284197-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-13T05:31:09.284197-07:00",
"MeasurementValueNeededDate": "2026-09-13T05:31:09.284197-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "88862d10-c286-4fbd-ad73-66a60adea361",
"CreateDate": "2026-09-13T05:31:09.284197-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T05:31:09.284197-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-13T05:31:09.284197-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "95917915-9d8c-4404-a6b4-2f612e79ff1d",
"CreateDate": "2026-09-13T05:31:09.284197-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T05:31:09.284197-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": "2e9500ae-19d9-4795-a742-0f20f11ec46f",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "cd08c7c5-7851-423c-8c72-7b2b7e543f1a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "5d951384-8197-45d5-8063-97168c1a025b",
"CreateDate": "2026-09-13T05:31:09.2998721-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-09-13T05:31:09.2998721-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "469c21e5-6996-48ce-b8e9-b77cf4fba208",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "d6c1f855-7ff8-47f1-b097-ed6f49ec6c86",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "d54ddbba-4007-4cbf-b3f3-10025e4bfdc2",
"CreateDate": "2026-09-13T05:31:09.2998721-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T05:31:09.2998721-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "9bd9b990-19b4-465e-a2f3-88d3e5c5fc47",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-09-13T05:31:09.2998721-07:00",
"MeasurementValueNeededDate": "2026-09-13T05:31:09.2998721-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "1240510b-cce8-41b5-a07a-f664b696f80c",
"CreateDate": "2026-09-13T05:31:09.2998721-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-09-13T05:31:09.2998721-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-09-13T05:31:09.2998721-07:00",
"MeasurementValueNeededDate": "2026-09-13T05:31:09.2998721-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "043db9c8-4729-4273-8530-cc1ad3ac0d87",
"CreateDate": "2026-09-13T05:31:09.2998721-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-09-13T05:31:09.2998721-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-09-13T05:31:09.2998721-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3da87de7-d7c4-4a85-b567-7e650c049c3a",
"CreateDate": "2026-09-13T05:31:09.2998721-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-09-13T05:31:09.2998721-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}