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": "518e15e4-84e7-4993-9a0d-d63a6584105c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "cbca5333-e2c7-4e24-96a5-1074dbbc9bf1",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "02efc48d-ebfd-4271-93b7-6dd6777c3a62",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "bf937ef7-11bf-44de-824d-20982d9bf972",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "ecbc149c-4f02-4785-b61a-3326f7c5b866",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6cd04d6a-f019-4ef6-9130-6b65e97eac4b",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "cc38514f-c71d-4412-880b-a245e87927c9",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"MeasurementValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5f21f2ad-74fc-4015-b11f-99bd258cd200",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"MeasurementValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a1a82e67-0a88-4254-b3c8-35b137138c34",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-12T17:40:49.6390789-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "291f6381-16a2-4efd-9b38-1825bcc893ee",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-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": "89752c86-c699-42b6-a24b-103c23ab9f4c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "57b6a7ca-6d01-4072-b499-16d2bbcfda48",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "2df2a7c8-ba25-4811-9dc0-18f4a9cb34f4",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "f82fad04-fa13-48bc-8e5e-3e91b59609fe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "5d4a476d-9fa5-4a2e-98a4-5945f06c261d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4096c5ad-5ca2-480c-bd3c-bfe9b701e6b5",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b8dcd448-18c2-4ea5-aeb4-f60f82247c07",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"MeasurementValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "acb3d0e3-2045-4729-afc3-21682d4ba4b6",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"MeasurementValueNeededDate": "2025-12-12T17:40:49.6390789-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "2f1975c2-38fc-4db5-b874-61e7042c5ae7",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-12T17:40:49.6390789-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "362d9038-923b-4db7-9088-348aa45c77c6",
"CreateDate": "2025-12-12T17:40:49.6390789-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-12T17:40:49.6390789-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}