POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
AttachmentName | 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": "01ec306e-50d6-41d8-8e7a-447679a7b46e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "fe9be2f9-c1df-4555-8895-571b369a0425", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "87ae74ad-ef9a-443b-87d1-085635ed7fa9", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3301c255-0f98-4150-b333-ac9e6e737cd3", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c4d7ba08-40b3-42b5-9bf7-144506f3b488", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "30d476a4-5208-4ae1-8c55-f81ea806ca6a", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "4b952487-1859-4b55-94c3-d4bdb4a089d8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "MeasurementValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "SourceSystemId": "sample string 3", "CompanyId": "0c54e08a-3c63-416b-887c-963b12fd2dc0", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "MeasurementValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "6d246d24-f763-43fa-855f-cbffb07723f1", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-26T21:59:57.5567916-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "74952c72-0cb9-45c7-87e2-60d9b21b2266", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-26T21:59:57.5567916-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": "6d78e507-de81-4920-a044-e7ca91ef270b", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f3b9d6bf-c31e-43b8-a7e0-178aef38b94c", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5a2b3b53-560e-4942-8348-93310ced848b", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7594d23b-fc89-4b0a-b06b-d255fa5a9966", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f1cdc56d-1585-4574-9065-8b199fd5dbe7", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "9081935c-8768-4ae4-abb8-a6e9514f42ae", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3868dbe0-c8be-431a-8da8-ad38700caf21", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "MeasurementValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "SourceSystemId": "sample string 3", "CompanyId": "80080193-b9b7-4e65-a018-4567ebf22365", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "MeasurementValueNeededDate": "2025-06-26T21:59:57.5567916-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "52cd28c9-c9eb-498e-98a6-11f5d340f0c0", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-26T21:59:57.5567916-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f391e671-8531-4e84-8dde-18a3d76a83ca", "CreateDate": "2025-06-26T21:59:57.5567916-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-26T21:59:57.5567916-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }