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": "7411c3b4-82e0-4688-94c3-3aeb63b4a69e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a8403c74-e229-4fab-a609-e02e47d86197", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5011ca17-ca7c-48e0-9633-67c4af88d22a", "CreateDate": "2024-12-08T02:39:39.1509224-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-08T02:39:39.1509224-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7c1609e7-67e7-4227-980b-233f69793c4a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "76e6520e-dc00-4293-b7cc-17b9d314cea6", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "311612c6-0b16-43ad-96da-b62c168c4224", "CreateDate": "2024-12-08T02:39:39.1509224-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T02:39:39.1509224-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "5819aa1f-2b24-4c3f-8cf7-9fad1d445380", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-08T02:39:39.1509224-08:00", "MeasurementValueNeededDate": "2024-12-08T02:39:39.1509224-08:00", "SourceSystemId": "sample string 3", "CompanyId": "b9c8ae3e-3257-4b54-b224-8e42ee464c2f", "CreateDate": "2024-12-08T02:39:39.1509224-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T02:39:39.1509224-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-08T02:39:39.1509224-08:00", "MeasurementValueNeededDate": "2024-12-08T02:39:39.1509224-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "328bf29d-125c-44d6-8abd-d5064aabded3", "CreateDate": "2024-12-08T02:39:39.1509224-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T02:39:39.1509224-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-08T02:39:39.1509224-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "80b0b7e1-3f7f-4ec5-9a5a-492ea3a253e7", "CreateDate": "2024-12-08T02:39:39.1509224-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T02:39:39.1509224-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": "a90e48ec-a56c-4374-a88c-fdb3cd97f06c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "397d0217-b6f7-4b5d-9ed7-40d7bde9943c", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5cd762d9-8551-417c-9fc1-72d3cbd641c7", "CreateDate": "2024-12-08T02:39:39.385294-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-08T02:39:39.385294-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "9840f5fc-14ae-4992-a6c3-8be6bbc4cc36", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8cf7927d-e446-482c-a354-fe7f241d3587", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6ed4cf9b-3435-4846-93ad-35752f1bab9b", "CreateDate": "2024-12-08T02:39:39.385294-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T02:39:39.385294-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "89bae1d6-a187-4d8d-b779-85100d86f49f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-08T02:39:39.385294-08:00", "MeasurementValueNeededDate": "2024-12-08T02:39:39.385294-08:00", "SourceSystemId": "sample string 3", "CompanyId": "98c508e6-7998-4cd1-9770-8ced6e695a00", "CreateDate": "2024-12-08T02:39:39.385294-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-08T02:39:39.385294-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-08T02:39:39.385294-08:00", "MeasurementValueNeededDate": "2024-12-08T02:39:39.385294-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "234cd439-c76f-4dc9-adb3-ee2e98d9639a", "CreateDate": "2024-12-08T02:39:39.385294-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-08T02:39:39.385294-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-08T02:39:39.385294-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "638df42f-166e-498f-92b4-11a594b7aaa4", "CreateDate": "2024-12-08T02:39:39.385294-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-08T02:39:39.385294-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }