Users

Update User Role

Update the user's Role

post/v2/users/{userId}/roleUpdate

Path parameters

userIdstring uuid required

The UUID of the User.

Request body

rolesstring[] required
<p>The role(s) for the user</p> <p>The role must exist</p> <p>The role can be a custom role or a system role but the invoker must have the permissions to assign the role</p> <p>System roles are: backoffice.admin, payor.master_admin, payor.admin, payor.support</p>
verificationCodestring nullable
<p>Optional property that MUST be suppied when manually verifying a user</p> <p>The user's smsNumber is registered via a separate endpoint and an OTP sent to them</p>

Example request

{
  "roles": [
    "payor.admin"
  ],
  "verificationCode": "123456"
}

Response

request completed okay

Changes

Changed in 4 of the 50 revisions of this API.725

  • dd71433847a6424See the full diff
    • the errors/items/ response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 403

      response-property-type-changed

    • the errors/items/ response's property type/format changed from / to object/ for status 404

      response-property-type-changed

    • added the optional property errors/items/errorCode to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/errorCode to the response with the 404 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/errorData to the response with the 404 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 400 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 401 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 403 status

      response-optional-property-added

    • added the optional property errors/items/localisationDetails to the response with the 404 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 400 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 401 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 403 status

      response-optional-property-added

    • added the optional property httpStatusCode to the response with the 404 status

      response-optional-property-added

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/locationType deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    • response property errors/items/reasonCode deprecated

      response-property-deprecated

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the response's body type/format changed from object/ to / for status 404

      response-body-type-changed

    • the errors/items/ response's property type/format changed from object/ to / for status 404

      response-property-type-changed

    This revision also has 26 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 257 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog