Skip to main content
POST
/
v1
/
task
/
{taskId}
/
{taskVersion}
Publish Task Version
curl --request POST \
  --url https://api.anchorbrowser.io/v1/task/{taskId}/{taskVersion} \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "code": "<string>",
  "language": "typescript",
  "description": "<string>",
  "browserConfiguration": {
    "initial_url": "<string>",
    "recording": {
      "active": true
    },
    "proxy": {
      "active": true,
      "type": "anchor_proxy",
      "country_code": "af",
      "region": "<string>",
      "city": "<string>"
    },
    "timeout": {
      "max_duration": 123,
      "idle_timeout": 123
    },
    "live_view": {
      "read_only": true
    }
  }
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "version": "<string>",
    "code": "<string>",
    "language": "typescript",
    "description": "<string>",
    "browserConfiguration": {
      "initial_url": "<string>",
      "recording": {
        "active": true
      },
      "proxy": {
        "active": true,
        "type": "anchor_proxy",
        "country_code": "af",
        "region": "<string>",
        "city": "<string>"
      },
      "timeout": {
        "max_duration": 123,
        "idle_timeout": 123
      },
      "live_view": {
        "read_only": true
      }
    },
    "deleted": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

taskId
string<uuid>
required

The ID of the task

taskVersion
string
required

The version to publish (cannot be draft)

Body

application/json
code
string

Base64 encoded task code (required for new versions)

Minimum length: 1
language
enum<string>

Programming language for the task

Available options:
typescript
description
string

Optional description of the version

Maximum length: 1000
browserConfiguration
object

Browser configuration for task execution

Response

Task version published successfully

data
object
I