APIUsersUpdate a subscription for a user
hidden

Parameters

Name

Type

Req.

  • id

    string
    required
  • 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
/users/{id}/payment/subscriptions
$ curl -X PUT "https://api.zoo.dev/users/{id}/payment/subscriptions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "modeling_app": "plus",
  "pay_annually": true
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 1,
    "description": "4AyMl9xd",
    "endpoints_included": [
      "modeling"
    ],
    "features": [
      {
        "info": "8i8eWuP1uWkwHkeUglp08bGQ6XvUkLoyhpXe9hzXaeM1GUy94ZzAhev4JPSNgZOE7JUl9SSM6Z"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 12,
    "monthly_pay_as_you_go_api_credits_monetary_value": "21.69",
    "name": "free",
    "pay_as_you_go_api_credit_price": "24.34",
    "price": {
      "interval": "month",
      "price": "80.31",
      "type": "flat"
    },
    "share_links": [
      "password_protected"
    ],
    "support_tier": "priority_email",
    "training_data_behavior": "default_off",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}