roles

Creates an role

Creates an role

post/roles

Request

  • Base URL
    https://provisioning.commercelayer.io
  • URL
    https://provisioning.commercelayer.io/roles
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "name": "Custom role",
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "organization": {
        "data": {
          "id": "XGZwpOSrWL"
        }
      }
    }
  }
}

Response

The created role object

Changes

No recorded changes to this operation across all 1 revision of this API.