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": "d7394f53-d2c7-4f0f-b8e3-1ea1ffede004", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "017ace26-2817-4820-8489-ba620903b55f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5fc9dedb-5979-473d-a6a1-aefa8e881c6a", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "8e5e778b-7c51-4cb1-b449-c271571c1992", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "73131d7c-71db-4576-b652-b831d066ba9f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "fa152cf4-3a0a-4ce0-bfa8-02a3a990e1fe", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "435286d9-6253-4bbe-9e4d-d9d8b88ec3e8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "MeasurementValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "SourceSystemId": "sample string 3", "CompanyId": "12fb5d49-882c-4077-90d7-f48002e3ab77", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "MeasurementValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9c008b97-22be-4761-a42d-8d45d5a1ca31", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-25T06:40:17.7791165-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "a4495a40-a679-4612-b8dd-f1e7de1ebdbc", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-25T06:40:17.7791165-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": "9f09f0ca-cf60-4ce5-9611-16af2d5326ed", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "2774f174-54e7-4bb9-8066-b1b4782f7fed", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0bfd6bf3-5c52-405c-b596-ec8c90ae67bd", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7e0790d0-cc55-42f2-b231-947c833bd4cf", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "231f624d-271b-499a-99ee-7aaf9d67f4c3", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "86e87576-d06e-48de-8f8a-78ee612d38a5", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "aec65f7a-1fcd-4b9f-9eba-a45cc8e947a2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "MeasurementValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "SourceSystemId": "sample string 3", "CompanyId": "38dad186-cfa1-4f23-8ded-e753a3d574e4", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "MeasurementValueNeededDate": "2025-06-25T06:40:17.7791165-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a747cdcf-94c3-404f-b919-ab4e47cfcf2e", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-25T06:40:17.7791165-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "87ed2cd3-5350-4bc6-b60f-085448cbb20f", "CreateDate": "2025-06-25T06:40:17.7791165-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-25T06:40:17.7791165-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }