Set or clear a workspace's display name
Sets the `display_name` of the workspace, or clears it. The body has one field: a string, or `null`.
Requires scope: partner
Sets the display_name of the workspace, or clears it. The body has one field: a string, or null.
A blank name after spaces at the ends are trimmed clears it, the same as null. A name is 1 to 100
characters after trimming, and a control character is refused. Any other field is refused. Returns the
workspace, without its api_key. Works on a closed workspace too.
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 partner's own id for the end user.
^[A-Za-z0-9._:-]{1,128}$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 PATCH "https://example.com/v1/partner/workspaces/string" \ -H "Content-Type: application/json" \ -d '{ "display_name": "string" }'{ "workspace_id": "string", "external_user_id": "string", "display_name": "string", "status": "active", "created_at": "2019-08-24T14:15:22Z", "free_credits": 0, "wallet_cap": 0, "tier": { "id": "string", "name": "string" }, "requests_per_minute": 1, "concurrency": 1, "wallet_cap_source": "tier", "window_resets_at": "2019-08-24T14:15:22Z", "wallet_used": 0, "wallet_used_source": "live", "free_used": 0, "own_credits": 0}Read one workspace GET
Returns the workspace without its `api_key`, with its usage figures (`wallet_used`, `free_used`, `own_credits`, `window_resets_at`).
Provision a workspace, or fetch it and its default key PUT
Creates the workspace for this end user if it does not exist, makes sure it has its default API key, and returns that key's plaintext.