Anon Keys

Set default anon key

Changed on

Promotes the given key to the project's configured default. At most one key per project can be default.

post/projects/{id}/anon-keys/{keyId}/set-default

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

keyId, string uuid required

Response

Key set as default

AnonKey required
id, string uuid required
project_id, string uuid
name, string required
key_value, string required

JWT token - use this in frontend Authorization header

permissions, string[]

Permissions granted to this anon key. Auth permissions: auth.signup, auth.signin, auth.refresh, auth.logout, auth.password_reset, auth.confirm_email, auth.resend_confirmation Storage permissions: storage.upload, storage.download, storage.list, storage.delete Realtime permissions: realtime.connect, realtime.subscribe, realtime.publish Functions permissions: functions.invoke

is_default, boolean

Whether this is the project's configured default anon key. Only one key per project can be default.

created_at, string date-time

Example response

{
  "permissions": [
    "auth.signup",
    "auth.signin",
    "auth.refresh",
    "auth.logout"
  ]
}

Changes

    • info

      the endpoint scheme security ProjectAccessToken was added to the API

    • breaking

      added the new path request parameter id

    • breaking

      the response's body type changed from no type to object for status

    10 more changes in this revision