Skip to main content
POST
/
v1
/
task
/
{taskId}
/
draft
Create or Update Task Draft (Legacy)
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>"
}
'
{}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

taskId
string<uuid>
required

The ID of the task

Body

application/json
code
string
required

Base64 encoded task code

Minimum string length: 1
Pattern: ^[A-Za-z0-9+/]*={0,2}$
language
enum<string>

Programming language for the task

Available options:
typescript
description
string

Optional description of the version

Maximum string length: 1000
browserConfiguration
object

Browser configuration for task execution

Response

Task draft created or updated successfully

data
object