Remove User Picture
Remove the picture a user uploaded (on their account page or with Set User Picture). Their sign-in provider's picture shows again, if they have one. Requires the endpoints:update permission in the active account.
Path parameters
uuid string (uuid) Req
The endpoint's
uuid from /endpoints.client_uuid string (uuid) Req
The user's
uuid. Resolved under this endpoint only.An integer id in the path is refused with 400 integer_id_unsupported (see public IDs). Use the uuid.
Response (204 No Content)
No body.
Errors
401 Unauthorized
Missing or invalid auth.
403 Forbidden
Your role lacks
endpoints:update, or you are not a member of the active account.404 Not Found
This user has no uploaded picture. (a copy of their Microsoft picture comes back at their next sign-in, so it isn't removed here), endpoint user not found, or the endpoint doesn't belong to the calling account.Request
curl -X DELETE \
"https://api.ngris.com/v1/endpoints/019bb1e4-e785-77d2-9966-c3cff31d0a0e/rbac/clients/019b4b9d-d300-736b-8601-153b3d9f70ee/picture" \
-H "X-API-KEY: <your_api_key>"
Was this helpful?