TribeTale API Docs
Admin APITiers

Edit a tier.

PUT
/tiers/{id}/

Authorization

GhostAdminJWT
Authorization<token>

Send Authorization: Ghost <JWT>. This is a custom Ghost scheme, not standard Bearer.

The JWT is signed with HS256 using the Admin API key secret after hex decoding it to bytes. The JWT header must include kid set to the Admin API key id. Ghost verifies the aud claim against the requested Admin or Content API path and enforces a maximum token age of 5 minutes.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/tiers/64f0f2c75b8d5b0012345678/" \  -H "Content-Type: application/json" \  -d '{    "tiers": [      {}    ]  }'
{
  "tiers": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "slug": "string",
      "active": true,
      "type": "free",
      "welcome_page_url": "http://example.com",
      "visibility": "public",
      "benefits": [
        "string"
      ],
      "currency": "string",
      "monthly_price": 0,
      "yearly_price": 0,
      "trial_days": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}