Skip to content
v0.5.1GitHub

Using

Sets or overwrites a user's access permission on a domain. `access` must be `"read"`, `"write"`, or `"ddl"` — each level includes the lower ones. Domain existence is checked when the target engine is active; `?allow_missing=true` skips the check for all store types.

applies to v0.5.1
POST
/store-api/auth/users/{name}/permissions
curl --request POST \
--url https://example.com/store-api/auth/users/example/permissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "access": "example", "domain": "example", "store_type": "example" }'
name
required
string

Username

allow_missing
boolean

Skip the domain existence check (pre-provisioning). Default false.

Media typeapplication/json
object
access
required

Access level: "read", "write" or "ddl".

string
domain
required

Domain name.

string
store_type

Store type of the domain: "kv" (default), "json" or "rel".

string | null

Example generated

{
"access": "example",
"domain": "example",
"store_type": "example"
}

Permission set

Invalid access or domain value

Media typetext/plain
string

User or domain not found

Media typetext/plain
string