APIPaymentsUpdate the user's subscription

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties
    • modeling_app

      string
      optional
      Possible values
      • free:  The free tier.
      • plus:  The plus tier.
      • pro:  The pro tier.
    • pay_annually

      boolean
      optional

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
put
/user/payment/subscriptions
$ curl -X PUT "https://api.zoo.dev/user/payment/subscriptions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "modeling_app": "pro",
  "pay_annually": true
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 31,
    "description": "",
    "endpoints_included": [
      "ml"
    ],
    "features": [
      {
        "info": "i7LGv"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 1,
    "monthly_pay_as_you_go_api_credits_monetary_value": "100.83",
    "name": "enterprise",
    "pay_as_you_go_api_credit_price": "55.51",
    "price": {
      "interval": "week",
      "price": "12.75",
      "type": "per_user"
    },
    "share_links": [
      "organization_only"
    ],
    "support_tier": "community",
    "training_data_behavior": "always",
    "type": {
      "saml_sso": true,
      "type": "organization"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}