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": false
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 6,
    "description": "28YuOJ2SDRgmPFEY0ZJBHNbVz",
    "endpoints_included": [
      "file"
    ],
    "features": [
      {
        "info": "wJoyRrAWp"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 25,
    "monthly_pay_as_you_go_api_credits_monetary_value": "94.01",
    "name": "team",
    "pay_as_you_go_api_credit_price": "88.60",
    "price": {
      "interval": "day",
      "price": "47.45",
      "type": "flat"
    },
    "share_links": [
      "password_protected"
    ],
    "support_tier": "standard_email",
    "training_data_behavior": "always",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "text_to_cad"
    ]
  }
}