# Update Indexes access

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

The following Indexes access permissions are available:

  • "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.
    In order to revoke a previously granted access permission, you need to use the "disable" value in the request:
  • "disable": The User has 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.