Change a tier
Changes the fields sent and leaves the rest. Every workspace on the tier gets the new limits, and any workspace whose balance cap is turned on from none has its cap reset.
Requires scope: partner
Changes the fields sent and leaves the rest. Every workspace on the tier gets the new limits, and any
workspace whose balance cap is turned on from none has its cap reset. Changes reach requests within about 60 seconds.
"default": true makes this tier the default; false is 400. A duplicate name is 409.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Path Parameters
The tier's id, from the list or the create response.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Any subset of the PartnerTierInput fields. default may only be true.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/v1/partner/tiers/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "name": "string", "requests_per_minute": 1, "concurrency": 1, "free_credits": 0, "wallet_cap": 0, "default": true, "workspaces": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}