Create a tier
Creates a tier. `name`, `requests_per_minute`, `concurrency` and `free_credits` are required.
Requires scope: partner
Creates a tier. name, requests_per_minute, concurrency and free_credits are required. The
partner's first tier becomes the default whatever default says. A value above the partner's ceiling
is 400, and the message gives the bound. A name already used by another tier 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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/partner/tiers" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "requests_per_minute": 1, "concurrency": 1, "free_credits": 0 }'{ "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"}List the partner's tiers GET
The partner's tiers, the default first, then by name. `workspaces` counts the live workspaces on each tier.
Change a tier PATCH
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.