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": "096f6813-c741-49ad-b4b0-cf3eff88fe44", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a89b6c35-6920-4ef0-b4ac-d844a64915c7", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "fc13066d-0361-4ca4-b3d7-3888426b70c4", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "f89f9a5e-c658-46c5-99c0-44b691b2f6db", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "435b8ec2-4784-4a88-a2db-f31a34958d78", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "37269d6f-3168-4812-bde3-a22a4ff0ff78", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "52508801-8021-476e-8498-7a46bcd91733", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "MeasurementValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "SourceSystemId": "sample string 3", "CompanyId": "99530557-358e-4999-8d7d-b20bb59a7767", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "MeasurementValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2dfd7b36-bed3-4b8f-995f-33bff5625b33", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T08:07:24.3744457-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "7ee0f536-bf14-4f70-97e5-5ab5ada3fae9", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T08:07:24.3744457-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": "a9c39134-8917-4d14-bfe9-83ee2559cf40", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a503d782-41f1-4243-9238-ae39a2b7c75e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2b2e538f-74a9-4ffa-87eb-723796a87eed", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "eb74a352-8c27-4c8d-a7b6-61599bfb8040", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a8e575d8-9ca5-45f3-a0aa-b986293b6f99", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "8323a635-cbb2-4519-9547-de6f4208366f", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "02ca2b86-46be-4d48-999a-386b056d8716", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "MeasurementValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "SourceSystemId": "sample string 3", "CompanyId": "2d6895c1-b687-4ab0-a3ed-1dacfc538afa", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "MeasurementValueNeededDate": "2025-02-05T08:07:24.3744457-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "36d6014e-623a-47d3-b8b2-b33a8f1a315f", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T08:07:24.3744457-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "b1a2019b-2b37-4bf1-ad88-c193ba069416", "CreateDate": "2025-02-05T08:07:24.3744457-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T08:07:24.3744457-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }