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": "a5869e31-5b22-4594-affe-defd0063293c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f7bcb202-3552-430a-b453-6775a9e6a35e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "9205b82a-78d4-498a-bc03-d05febf8055b", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e0d2b82b-b686-4f25-838f-641e6ef7a86e", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8f4a4269-ba45-4823-9bbb-9aad392a9dea", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "1d2ced80-348d-4e3c-8ffa-da1d099fe805", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c1ebf9d0-e05c-4331-87ae-6bec4b255364", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "MeasurementValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "SourceSystemId": "sample string 3", "CompanyId": "b3ce919a-468d-48a2-a76b-5f10f599afc5", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "MeasurementValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "6cc12ce2-7acf-4fcf-a814-dcb5e67e36f2", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T06:09:59.0251901-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "b7af914a-fe79-4c4c-a0c3-6d40d4103a90", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:09:59.0251901-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": "6e08c7aa-6ebd-4c2c-82d9-accef54e9060", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ae385220-e1bd-4c7a-92cd-96654df16c7b", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "6008965f-e853-4194-a176-10727ebb04b9", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "207f1eb8-dccf-4d17-bbfa-2274d1851254", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "131e0bdc-80c4-4da3-94aa-9ba004c5c7ad", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a0af4bb4-9472-44b0-b19e-77b107de8259", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "9e62cc72-ac4e-4333-8ae0-c74a1d347bd4", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "MeasurementValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "SourceSystemId": "sample string 3", "CompanyId": "294ba647-8f49-4bbe-a59d-c286c6ebb43f", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "MeasurementValueNeededDate": "2025-02-05T06:09:59.0251901-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c9da6ca7-c0c4-4e1f-a58a-96a60797ef9a", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T06:09:59.0251901-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "99df80b2-ceda-4072-9c5a-5516e8d2658a", "CreateDate": "2025-02-05T06:09:59.0251901-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:09:59.0251901-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }