Administration

Update tenant billing plan

Update the billing plan for a tenant.

Note: If tenant name is not specified, the tenant invoking the API is used to update billing plan.

post/_api/plan/update

Request

Request body

attributionstring required

Attribution of the billing plan.

planstring required

Name of the billing plan.

tenantstring

Name of the tenant.

payment_method_idstring

ID of Stripe payment method.

Example request

{
  "attribution": "Macrometa",
  "plan": "Enterprise",
  "tenant": "joe",
  "payment_method_id": "pm_1KRHKj2eZvKYlo2CHkt3rab6"
}

Response

Successfully updated billing plan.

codeinteger

HTTP response code.

errorboolean required

Flag if there is an error in response. False for this response.

Example response

{
  "code": 200,
  "result": {
    "attribution": "Macrometa",
    "plan": "Enterprise",
    "features": [
      {
        "KV": true
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.