Skip to main content

Replace one account's per-share access

PUT 

/users/:userId/permissions

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request PUT \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
--header "Content-Type: application/json" \
--data @body.json \
"https://$HOSERVA_HOST:8008/api/v1/users/{userId}/permissions"

A full replace: the account's access is set to exactly the shares and levels listed, and every share this account previously had an explicit level for but that is missing from the request loses its row entirely (access is editable from either the share or the user; this is the user-side editor).

Request​

Responses​

This account's updated per-share access.