---
title: "Update access control for one DBaaS Valkey service user"
method: PUT
path: "/dbaas-valkey/{service-name}/user/{username}"
tags: ["dbaas"]
---

# Update access control for one DBaaS Valkey service user

`PUT /dbaas-valkey/{service-name}/user/{username}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-valkey/{service-name}/user/{username}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-valkey/:service-name/user/:username/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `service-name` string, required
- `username` string, required

## Request body

- object
  - `access-control` DbaasValkeyUserAccessControl
    - `categories` string[]: Use +@<category> to allow and -@<category> to disallow. Separate entries with a single space. Example: +@all -@dangerous.
    - `channels` string[]: Patterns use standard glob syntax and must be separated by a single space. Example: ~* &events.
    - `commands` string[]: Use +<command> to allow and -<command> to disallow. You can also use @<category>. Separate entries with a single space. Example: +@all -flushall.
    - `keys` string[]: Patterns use standard glob syntax and must be separated by a single space. Example: cache:* session:*.

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
