Skip to main content
PATCH
/
v1
/
baas
/
accounts
/
{account_id}
Update account
curl --request PATCH \
  --url https://api-sandbox.y.uno/v1/baas/accounts/{account_id} \
  --header 'Content-Type: application/json' \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>' \
  --data '
{
  "status": "ACTIVE",
  "metadata": {
    "tier": "premium"
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

public-api-key
string
header
required

Your public API key from the Yuno Dashboard

private-secret-key
string
header
required

Your private secret key (server-side only)

Path Parameters

account_id
string<uuid>
required

The unique identifier of the BaaS account

Body

application/json
status
enum<string>

New account status

Available options:
ACTIVE,
SUSPENDED,
CLOSED
metadata
object

Custom metadata

Response

Account updated

id
string<uuid>
status
string
updated_at
string<date-time>