spicrawlspicrawlDocs
Partner

Change the partner's settings

Sets `allow_account_spend`. When it is `true`, workspaces on the partner's Free plan may draw the partner's account credits (after their free and given credits).

Requires scope: partner

PATCH
/v1/partner/settings

Sets allow_account_spend. When it is true, workspaces on the partner's Free plan may draw the partner's account credits (after their free and given credits). Workspaces on a paid plan always may, so the setting does not affect them. Takes effect within about 5 seconds.

Authorization

bearerAuth
AuthorizationBearer <token>

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

curl -X PATCH "https://example.com/v1/partner/settings" \  -H "Content-Type: application/json" \  -d '{    "allow_account_spend": true  }'
{  "allow_account_spend": true}