POST
/
api
/
v1
/
subnames
Create or update a subname
curl --request POST \
  --url https://offchain-manager.namespace.ninja/api/v1/subnames \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --data '{
  "parentName": "oppunk.eth",
  "label": "alice",
  "owner": "0x1234...abcd"
}'
{
  "id": "123",
  "fullName": "alice.oppunk.eth",
  "parentName": "oppunk.eth",
  "label": "alice",
  "texts": {
    "email": "alice@example.com"
  },
  "addresses": {
    "ETH": "0x1234...abcd"
  },
  "metadata": {
    "role": "admin"
  },
  "contenthash": "ipfs://Qm...",
  "namehash": "0xabc123..."
}

Authorizations

x-auth-token
string
header
required

Body

application/json

Response

Subname created or updated

The response is of type object.