# Update Indexes access

This endpoint enables, modifies, and disables direct access to the Indexes database for given users.

# Access permissions

The following access permissions are available for the Indexes service.

Access permission Description
read The user is only allowed to read the Indexes database. They cannot make any changes to the Indexes database.
write The user is allowed to read the Indexes database and to make changes to it.
disable This access permission is used to revoke a previously granted access permission. The user will have no access to the Indexes database.
Method Path Operation*
PATCH /account/services/indexes update_indexes_access

*

In order for a user to perform the "update_indexes_access" operation, the "update_indexes_access" permission must be included in the list of allowed actions in the statement of the user's role.

# Request

Parameter Type In Description
users dictionary body Key-value pairs:
- key: User UUID of the user for whom access permission to the Indexes database is to be granted, or whose Indexes database permission is to be revoked.
- value: Must be "read" (the user is only allowed to read the Indexes database, not to make any changes), "write" (the user is allowed to read the Indexes database and to make changes to it), or "disable" (the user has no access to the Indexes database).

# Response

The response returns a list of user UUIDs with direct access to Indexes tables with their respective access permissions in form of key-value pairs (key: user UUID, value: access permission of the user). Please note that as we have disabled access for the user with the user UUIDs "3a3944d6-0bf9-4d42-abcd-cccccccccccc", this user UUIDs with their access permission is not returned in the response.

Attribute Type Description
users dictionary Key-value pairs:
- key: User UUID of the user whom we want to grant Indexes tables access permissions, or whose Indexes database permissions we want to update or revoke.
- value: Must be "read" (the user is only allowed to read the Indexes database, not to make any changes), "write" (the user is allowed to read the Indexes database and to make changes to it), or "disable" (the user has no access to Indexes tables).

# Status codes

Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status codes section.

Was this article helpful?