cURL
curl --request POST \ --url https://api.anchorbrowser.io/v1/task/{taskId}/draft \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data ' { "code": "<string>" } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "version": "<string>", "code": "<string>", "deleted": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "language": "typescript", "description": "<string>", "browserConfiguration": { "initial_url": "<string>", "recording": { "active": true }, "proxy": { "active": true, "type": "anchor_proxy", "country_code": "us", "region": "<string>", "city": "<string>" }, "timeout": { "max_duration": 123, "idle_timeout": 123 }, "live_view": { "read_only": true } } } }
Creates or updates the draft version of a task. Draft versions are used for development and testing before publishing.
API key passed in the header
The ID of the task
Base64 encoded task code
1
Programming language for the task
typescript
Optional description of the version
1000
Browser configuration for task execution
Show child attributes
Task draft created or updated successfully
Was this page helpful?