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": "bc164b52-cf1c-430f-ab2e-4793ab91622a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "daa0e648-0aaa-4e31-8756-a71994344bcb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "4431dad8-d3c4-4939-bbd0-b57166739306", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "1fe047f5-1f62-412f-b129-b85ce4cf7af9", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "0553e0f7-86e0-40d0-90cf-df46e8acf26c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "31312e2e-6fa5-4d9f-bf73-aa991b4820bf", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "bce87840-7dcc-461c-bb7a-fb3c81e8cb15", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "MeasurementValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "SourceSystemId": "sample string 3", "CompanyId": "326986a1-b74c-472e-9c98-c79071ee7087", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "MeasurementValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a715d882-2c14-4b2e-976e-f1e9c424abd0", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-24T10:11:43.0568651-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "64a44d87-6919-4cec-99c4-bfdbe8f3ef2b", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-24T10:11:43.0568651-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": "6b7d36f4-b085-49d0-8e53-8e8ba158d459", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a47c685b-2c77-4bf0-a828-d301dc07ea15", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e7e0190f-4e40-4777-b90f-087bf36fe01e", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "d22bcbea-a943-445c-b320-b658d7b6ecfb", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "48a413a6-76a9-475c-97b7-6de5ba8dfdde", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f5087871-f9f0-4236-a39b-f13c05466c20", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "6d0843e6-043f-4e59-962d-ae471caf684b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "MeasurementValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "SourceSystemId": "sample string 3", "CompanyId": "c4482e65-cdb3-464e-b609-0d451461f4b6", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "MeasurementValueNeededDate": "2025-08-24T10:11:43.0568651-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "b63a254f-7aec-4e37-96e1-0aa654d60ab5", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-24T10:11:43.0568651-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e18e01a1-5be6-40c0-8251-91fdba11a0c6", "CreateDate": "2025-08-24T10:11:43.0568651-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-24T10:11:43.0568651-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }