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": "9d4fb1ec-5704-49e6-80d8-d5f1ed436e26", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "c6721b4c-1866-4ec1-8d7a-80c2bf245c05", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "eb62e864-02ab-49f9-9609-a67b6ad98f51", "CreateDate": "2024-04-19T02:46:44.2746774-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-19T02:46:44.2746774-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b1549b2f-f198-4dd4-88bb-611d450d8af8", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "44e8d9c6-a92d-447b-b5d9-d150a8ef77ba", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "344f363e-f703-48ca-a2e1-db20b138b60d", "CreateDate": "2024-04-19T02:46:44.2746774-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T02:46:44.2746774-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "be3e062f-542f-4edc-a12b-7f145ea3e2b1", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-19T02:46:44.2746774-07:00", "MeasurementValueNeededDate": "2024-04-19T02:46:44.2746774-07:00", "SourceSystemId": "sample string 3", "CompanyId": "34764b23-cdcc-42f0-83e0-99b11991f35a", "CreateDate": "2024-04-19T02:46:44.2746774-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-19T02:46:44.2746774-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-19T02:46:44.2746774-07:00", "MeasurementValueNeededDate": "2024-04-19T02:46:44.2746774-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "85826e48-cf62-45c1-a9b5-711df1295452", "CreateDate": "2024-04-19T02:46:44.2746774-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-19T02:46:44.2746774-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-19T02:46:44.2746774-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "57f38258-adaa-4457-bf9d-adc7ea952cf8", "CreateDate": "2024-04-19T02:46:44.2746774-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T02:46:44.2746774-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": "cc74bb91-5f48-468f-8288-8410bbcc38be", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "25ac0282-5c2a-4b02-9679-ab88c3e9b913", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "6edd29c8-39b7-44b2-a456-e5eeb14d039b", "CreateDate": "2024-04-19T02:46:44.2903117-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-19T02:46:44.2903117-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "2b8ac5ee-b887-4594-9b5a-23e68dcb43f2", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "b6a676a9-3318-42ab-9f34-3b414ddb144a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b01e066c-4534-4529-a34c-237f0b1624fd", "CreateDate": "2024-04-19T02:46:44.2903117-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T02:46:44.2903117-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "ad595c5c-fa0c-400e-a6a8-420139746bf5", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-19T02:46:44.2903117-07:00", "MeasurementValueNeededDate": "2024-04-19T02:46:44.2903117-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7e1b342b-601b-4495-9b89-de7cf7e877a4", "CreateDate": "2024-04-19T02:46:44.2903117-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-19T02:46:44.2903117-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-19T02:46:44.2903117-07:00", "MeasurementValueNeededDate": "2024-04-19T02:46:44.2903117-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a6491d57-53d5-4acd-a73d-c77e54c28430", "CreateDate": "2024-04-19T02:46:44.2903117-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-19T02:46:44.2903117-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-19T02:46:44.2903117-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "25b23c25-2ba5-48dc-8c56-a2ba4b2d2bd1", "CreateDate": "2024-04-19T02:46:44.2903117-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T02:46:44.2903117-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }