POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
Attachment| Name | 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": "ab6d79c5-7260-4836-b286-997c8ed53f8c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "b945bc9c-5fb5-464f-a90a-78a22a46203b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "622aa112-93c1-4a24-8c0b-ac9560505a78",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "9fd81a37-5894-4603-aebf-c407b186022c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "daacec5c-084b-4391-94b5-e2163ea03bdd",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "6c8410e8-e36c-4608-b1d9-2ae6fc55655b",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "1fc28732-db29-46bb-a99c-e9e1c3b27751",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"MeasurementValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "6584d0ad-9312-443f-b6ac-33b6b01c182a",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"MeasurementValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d9d431bc-e7ea-487c-9f28-32633f94d589",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-24T15:07:03.0303141-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "26fa5e81-e5d0-4a33-bc4e-d1a8df97ad2a",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-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": "818ab1cc-139b-4a0b-9c4f-1230fcd3c9d0",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "fa0abba3-c7f7-4cf5-a8a2-d9cdd0ab5d96",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "eb1dc5ab-6c52-4752-97b4-80edffcfab6c",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "71f4942c-a019-4295-af0c-685f9e09e621",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "bea39dcc-ff27-46b3-80ce-4df7ff014880",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e78cc847-1105-4302-b39b-2453da08ef98",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "c242a45d-6da6-4e55-a6b5-b5f355dde18a",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"MeasurementValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "22f8571b-54d4-4169-8da9-1faf6435e535",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"MeasurementValueNeededDate": "2026-03-24T15:07:03.0303141-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "61f3d895-2522-4996-b438-754711c6fc5a",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-24T15:07:03.0303141-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "ed4adec8-080e-42db-a860-8caec247656d",
"CreateDate": "2026-03-24T15:07:03.0303141-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-24T15:07:03.0303141-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}