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": "0c47e3bc-6b01-4188-9dc4-b82748a0b50e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "682a435c-1b78-4623-b46f-3275b8edf585", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0cfdac7f-d02d-47c0-80ff-fe3923c16b3c", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "9fb0f6a5-2034-450c-a962-f631a43d67fd", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f81a42f9-8e9c-4e8f-8b6f-750fdcd120e2", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f2ce123c-cad7-4d75-a5a5-4f9a8383b15b", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "f61a1d7a-317f-4bfe-89aa-8aaf9a538400", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "MeasurementValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "SourceSystemId": "sample string 3", "CompanyId": "57c7a1f3-025d-43b4-9921-d8ca177b3bec", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "MeasurementValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9555677b-2d96-42df-b060-3501b8d5a04b", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-15T17:01:53.7402841-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f795aa71-085c-496e-8af5-8c2109db3ffb", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-15T17:01:53.7402841-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": "2580a400-9227-47b4-acaf-4847cdf29cf1", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "67734a77-9835-49fd-adab-8c6fc694f090", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5973fba2-34a3-457f-8de2-97ba586ba8e5", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "582bd3cf-4b01-46bc-86a9-22df2c58a0a0", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "63999432-0805-4554-9f30-fac51d115008", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "0d4256fd-fb52-4804-9e55-12fd4be3b0be", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3f7c8879-eed0-444c-86d6-efb75e0175c0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "MeasurementValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "SourceSystemId": "sample string 3", "CompanyId": "ff8dd699-8d34-4038-86d7-0091bac929cd", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "MeasurementValueNeededDate": "2025-09-15T17:01:53.7402841-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "605a8dd1-26ed-4315-b492-3b2e318a3955", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-15T17:01:53.7402841-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f1507c8e-25d1-4219-a8b5-b05bb470378b", "CreateDate": "2025-09-15T17:01:53.7402841-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-15T17:01:53.7402841-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }