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": "99ae4e74-314d-4df7-9e55-aa3270db0a54", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6ce4ee6b-e32a-4d70-a39a-fbebe5ce3d24", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "67432e1b-197d-4f0d-959b-feda0a201331", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "db49cac2-cef3-4cd3-aa9a-58f1cada55a1", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "21da29c7-229e-4cbc-83e3-973553f944c0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "95d85e0a-1175-4d12-8b7a-84720cf40eb6", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "2d63a236-3ab1-4192-86d9-4d21c6e12a2e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "MeasurementValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "SourceSystemId": "sample string 3", "CompanyId": "ea774f87-dbce-4c11-8754-fbdacca336df", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "MeasurementValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4dc086dc-afda-493e-ac05-74e1ea69c409", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-02T16:54:22.8383698-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "7a1fd941-edd4-4f83-84ac-3a7670ca867d", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-02T16:54:22.8383698-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": "b7dcc7b1-b0cb-41e6-b6ca-72eca19a5033", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "e74168db-2126-4775-80ac-8ee40f6eeb68", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "1b82cfce-73c7-4511-afdb-615b12f651aa", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cf736bf1-bd82-4116-b851-b1b3554f439d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "7af122bb-9902-4475-92c3-f8a148b4f90c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e938dbc0-9c14-42c9-9e3c-55a87c38e00f", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "aa147f8d-1a6a-49fa-8a07-e5cca21a1bfc", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "MeasurementValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6eae72a2-1227-402a-b100-ed2a8e5e238d", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "MeasurementValueNeededDate": "2025-07-02T16:54:22.8383698-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "87ee9869-080a-403d-bc9b-0ed2d7d96691", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-02T16:54:22.8383698-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "72fd4c0c-ddcb-4060-b962-29a6955af661", "CreateDate": "2025-07-02T16:54:22.8383698-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-02T16:54:22.8383698-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }