---
title: "Update access control for one service user"
method: PUT
path: "/dbaas-postgres/{service-name}/user/{username}/allow-replication"
tags: ["dbaas"]
---

# Update access control for one service user

`PUT /dbaas-postgres/{service-name}/user/{username}/allow-replication`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-postgres/{service-name}/user/{username}/allow-replication`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-postgres/:service-name/user/:username/allow-replication/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
  - `allow-replication` boolean

## Response `200`

200

- DbaasPostgresUsers
  - `users` object[]
    - `username` string, required
    - `allow-replication` boolean

## Changes

- **2023-02-03** `6e9809fd1444`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/dbaas-postgres/:service-name/user/:username/allow-replication/put.md)

---

[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)
