POST
/
api
/
ledger
/
v2
/
{ledger}
/
accounts
/
{address}
/
metadata
curl --request POST \
  --url http://localhost:55001/api/ledger/v2/{ledger}/accounts/{address}/metadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "admin": "true"
}'
This response has no body data.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Use an idempotency key

Path Parameters

ledger
string
required

Name of the ledger.

Example:

"ledger001"

address
string
required

Exact address of the account. It must match the following regular expressions pattern:

^\w+(:\w+)*$
Example:

"users:001"

Query Parameters

dryRun
boolean

Set the dry run mode. Dry run mode doesn't add the logs to the database or publish a message to the message broker.

Example:

true

Body

application/json · object

metadata

The body is of type object.