Version Invalid

The requested version is not valid

Purple gradient wave Purple wave used to give a visual break between the header and body of the page.

Summary

The requested version was not valid, which can happen for a number of reasons with the most common being that the version was not in the correct format.

curl -H "x-api-version:invalid" -H "Authorization: ApiKey {ApiKey}" https://api.youmanage.co.uk/Companies

{
  "error": {
    "code": "YM0073",
    "reference": "https://developer.youmanage.co.uk/api/errors/ym0073",
    "target": "Version",
    "message": "An invalid version was requested",
    "details": null
  }
}

  

Solution

Check that the version being requested is in a valid format and is currently supported, before making the request again.

curl -H "x-api-version:0.1" -H "Authorization: ApiKey {ApiKey}" https://api.youmanage.co.uk/Companies

[
  {
    "id": 2,
    "name": "Fictional Data Limited",
    "enabled": true
  }
]

For more information see our guide on versioning.