POST /command/users/reinstate

Reinstate a user after they have been revoked.

Request format

When Forming RBAC API requests to this endpoint, the content type is application/json. The body must be a JSON object containing the user_id key, which specifies the UUID of the user you want to reinstate.

Example curl request:

curl -X POST "https://$(puppet config print server):4433/rbac-api/v1/command/users/reinstate" \
-H "X-Authentication: $(puppet-access show)" \
-H "Content-type:   application/json" \
-d '{"user_id": "c97c716a-5f42-49d8-b5a4-d0888a879d21"}'

Response format

Returns 204 No Content if the user is successfully reinstated.

Returns 404 Not Found if the specified user doesn't exist.

For other errors, refer to RBAC service errors .