APIUsersUpdate a subscription for a user
hidden

Parameters

Name

Type

Req.

  • id

    string
    required
  • bodyapplication/json

    object
    optional
    Object Properties

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": "free",
  "pay_annually": true
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 4,
    "description": "GPshvbhjaiuLbzU82ESzoglvdA4W",
    "endpoints_included": [
      "modeling"
    ],
    "features": [
      {
        "info": "Sf12jUnKZ6kn3YLOXcFPmXHqpeK2reWPK1Rr2a5u8aT0FZIoM2MbnBeXJEIxMLsYZx"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 24,
    "monthly_pay_as_you_go_api_credits_monetary_value": "21.06",
    "name": "free",
    "pay_as_you_go_api_credit_price": "38.23",
    "price": {
      "interval": "month",
      "price": "8.89",
      "type": "flat"
    },
    "share_links": [
      "organization_only"
    ],
    "support_tier": "community",
    "training_data_behavior": "always",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}