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": "cb2d7699-2fdc-46e9-83c1-15fdb9c86a4c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "24a919b6-f94c-44e8-a6e3-30f00caec451", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "ab0bce4e-f78d-49fb-93d1-dc59c27f3f90", "CreateDate": "2025-05-17T04:38:48.2789363-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-17T04:38:48.2789363-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "348bdd27-57de-48ec-bd07-82bfa062484b", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a5981dcb-36ca-4012-85d1-90f34a0fb087", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a4b62cf4-685e-4e7c-a2c6-55de36e8993c", "CreateDate": "2025-05-17T04:38:48.2789363-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T04:38:48.2789363-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c7dc0844-5d78-4131-91c4-141eaff34883", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-17T04:38:48.2789363-07:00", "MeasurementValueNeededDate": "2025-05-17T04:38:48.2789363-07:00", "SourceSystemId": "sample string 3", "CompanyId": "bd562d8f-6922-41d1-b33e-549fb8604884", "CreateDate": "2025-05-17T04:38:48.2789363-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-17T04:38:48.2789363-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-17T04:38:48.2789363-07:00", "MeasurementValueNeededDate": "2025-05-17T04:38:48.2789363-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "ee6fe159-4374-461b-b1eb-b3730febc140", "CreateDate": "2025-05-17T04:38:48.2789363-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-17T04:38:48.2789363-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-17T04:38:48.2789363-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "b0995237-8a03-488f-ab17-499e2c805c42", "CreateDate": "2025-05-17T04:38:48.2789363-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T04:38:48.2789363-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": "cd509f5f-bb37-4616-9b39-e4d06dd3477c", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "89623a93-77fc-47bc-8a64-1ebeadec6837", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "66726cd0-cd3b-4f98-88f2-da2f4f807084", "CreateDate": "2025-05-17T04:38:48.2945502-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-17T04:38:48.2945502-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "7f023947-8531-4ad5-9727-486899db0543", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "547e1bb2-017e-49a8-b129-94d8cf3a209a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f67f794b-d9ef-4795-be73-df58a2519301", "CreateDate": "2025-05-17T04:38:48.2945502-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T04:38:48.2945502-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "a3d704a8-605a-4e67-9776-c571c25662a2", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-17T04:38:48.2945502-07:00", "MeasurementValueNeededDate": "2025-05-17T04:38:48.2945502-07:00", "SourceSystemId": "sample string 3", "CompanyId": "50d2d323-9f0b-403d-ae02-ced67b3c71eb", "CreateDate": "2025-05-17T04:38:48.2945502-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-17T04:38:48.2945502-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-05-17T04:38:48.2945502-07:00", "MeasurementValueNeededDate": "2025-05-17T04:38:48.2945502-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0e05b18b-efea-47b7-95e0-fdfebd2b1d28", "CreateDate": "2025-05-17T04:38:48.2945502-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-17T04:38:48.2945502-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-17T04:38:48.2945502-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e232c288-f08d-448f-986d-55cdab052ce4", "CreateDate": "2025-05-17T04:38:48.2945502-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-17T04:38:48.2945502-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }