Merge Assets

/assets/merge

Merge Asset [POST]

Merge two existing assets. This request will merge the "from" asset with the "to" asset.

  • Merging two assets is helpful when a duplicate asset is created in an account and a form or inspection has been completed on it.
  • This request will take any forms assigned to the first asset and assign them to the second asset. Then the first asset will be deleted.
  • Only assets of the same class/type and in the same account can be merged. Otherwise the merge does not happen.

Authorization: Admin

Request

Body

{
  "fromAssetId": "522540",
  "toAssetId": "522541",
}

Response [200]

An empty 200 response means the merge completed successfully.

{}

Response [422]

If there is an error the response will return a 422 stating the error as to why the merge couldn't happen

{
  "errors": {
  "fromAssetId": [
    "An asset with this ID doesn't exist."
  ]
}

Still need help? Contact Us Contact Us