Skip to main content
POST
/
plans
/
{code}
/
metadata
Replace plan metadata
curl --request POST \
  --url https://core.nozle.app/api/v1/plans/{code}/metadata \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "external_id": "ext-123",
    "synced_at": "2024-01-15",
    "source": null
  }
}
'
{
  "metadata": {
    "external_id": "ext-123",
    "synced_at": "2024-01-15",
    "source": null
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

code
string
required

The code of the plan.

Example:

"startup"

Body

application/json
metadata
object | null
required

Custom metadata stored as key-value pairs. Keys are strings (max 100 characters), values can be strings (max 255 characters) or null.

Example:
{
"external_id": "ext-123",
"synced_at": "2024-01-15",
"source": null
}

Response

Plan metadata replaced

metadata
object | null
required

Custom metadata stored as key-value pairs. Keys are strings (max 100 characters), values can be strings (max 255 characters) or null.

Example:
{
"external_id": "ext-123",
"synced_at": "2024-01-15",
"source": null
}