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": "e024c256-f910-4bdd-a921-ae92c83b80d8", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6d51292a-822b-4ef8-a5ce-445aa598b565", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "4f90e39c-a02d-4186-b539-621033f764f2", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "07f3a858-072b-428d-a539-c72c10390f13", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "4ef6d034-25ba-430c-9134-8c6aa337007d", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "7c0c162d-2139-4768-b67b-9664246a568d", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "de269658-2089-4652-8a44-e8b3c86e1deb", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "MeasurementValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "SourceSystemId": "sample string 3", "CompanyId": "15c196fb-4add-4798-a8b4-970908b1999f", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "MeasurementValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "5c95462a-3244-42cd-9ee9-6c923421637e", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-30T14:37:11.2423955-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "664be78a-495c-44a2-8f8b-f534578f7e1f", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:37:11.2423955-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": "be02b9bc-dbe6-4228-b434-93f96dd43742", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "06a0d05f-6530-4edb-8485-0d1fcc55c802", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "1d1d4d83-3f25-41a0-967a-06b1d77bc96c", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3be5021e-57cb-4b6a-b4c9-def6716d0ddd", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "6f2a50a4-da3b-4df1-93e7-93c36ff6afc6", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6532b8c6-443c-4fc0-91f3-fb76451566d1", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "1315b89c-5c68-4258-86d9-d52eebece5b6", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "MeasurementValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "SourceSystemId": "sample string 3", "CompanyId": "a676923f-4c43-48b8-9b17-433894b80da3", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "MeasurementValueNeededDate": "2025-04-30T14:37:11.2423955-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7ff82fc8-e7b6-488e-b959-39d4dfe8abc8", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-30T14:37:11.2423955-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "1c83d7cf-329f-470d-8fe8-dec369465f5c", "CreateDate": "2025-04-30T14:37:11.2423955-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:37:11.2423955-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }