APIPaymentsUpdate the user's subscription

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties

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": "free",
  "pay_annually": true
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 32,
    "description": "hAQ9m84X6Sir2HiGH8EU8Irv",
    "endpoints_included": [
      "ml"
    ],
    "features": [
      {
        "info": "6Ka4tB2kAwBAYRnrpdl5jbBg0cQb2RZNqTJTwrXIs7wUg70bZu8HJJN"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 24,
    "monthly_pay_as_you_go_api_credits_monetary_value": "100.82",
    "name": "team",
    "pay_as_you_go_api_credit_price": "46.17",
    "price": {
      "type": "enterprise"
    },
    "share_links": [
      "organization_only"
    ],
    "support_tier": "premium",
    "training_data_behavior": "default_off",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "text_to_cad"
    ]
  }
}