/v1/api/users/{id} (PUT) - BlueCat DNS Edge

DNS Edge API Guide

Locale
English
Product name
BlueCat DNS Edge

Updates email address, user name, role, and status of the user specified by user ID.

Request: PUT https://api-<DNS.Edge.URL>/v1/api/users/{id}
Authorization: Bearer authorization token

 {
    "email":"new email address",
    "name":"new name",
    "role":"ADMIN | POLICYADMIN | ANALYST",
    "status":"active | inactive"
 }
Attention: You can't update the email address of another users. You can only update your own email address.

Successful response

200 OK
Content-Type: application/JSON
Successful response code:
  • NO CONTENT - Successfully updated user
Possible error codes:
  • BAD REQUEST - Invalid request
  • UNAUTHORIZED - Missing or invalid token
  • FORBIDDEN - You are not authorized to perform this action
  • NOT FOUND - User ID requested can't be found
  • INTERNAL SERVER ERROR - Unexpected error