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": "3cdfbfa3-8a2d-436a-9716-2fd06b43ddaa", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "99d95f8b-a627-4e74-9012-470b73615b46", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "360fa560-cd62-460a-b361-f48f3a0f5b0c", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "14363fc6-7b67-4cc4-90cc-c894d188d047", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "71859588-4a99-40e7-b220-74d58226b42f", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "2b0ac905-287e-4f01-b071-fc0356cc0ef7", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "50f86af7-fef1-4c42-8d4d-3bca04c35b94", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "MeasurementValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "SourceSystemId": "sample string 3", "CompanyId": "a41377c8-dd54-479d-a505-14f79cafeeb5", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "MeasurementValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4ea3a7de-6785-4889-b3d3-4f97ceb8c04c", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-09T00:43:10.1378823-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "370a4cfa-b0ce-4eaf-b477-734ea1b5f7fa", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T00:43:10.1378823-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": "abfd9a73-5305-4c6b-8898-78ba50442f36", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "60a58501-564e-4796-a0a2-a23d9e45aedb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "824af756-bd99-4816-8078-0ed0fde56934", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "31ac12d2-934f-4f5a-9bc4-ec086e199fb1", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "21baa429-0587-4c92-823e-1a56b5856748", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4dcbbe05-fde0-4640-adfc-67a2b6326071", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "76759cef-0cff-4cc9-9df6-3f7d243c9037", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "MeasurementValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "SourceSystemId": "sample string 3", "CompanyId": "410fbaeb-56f8-4a33-a452-120323a8e87a", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "MeasurementValueNeededDate": "2025-05-09T00:43:10.1378823-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "312b3d5e-06d3-4d75-8655-da1b9012df67", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-09T00:43:10.1378823-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e0092d03-8115-4913-a45b-43422e2c866d", "CreateDate": "2025-05-09T00:43:10.1378823-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-09T00:43:10.1378823-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }