Tasks (Legacy)

Deploy Task (Legacy)

Changed on

Deploys a task by creating a new version with auto-incremented version number. This is the recommended way to publish task changes.

If you are using the new Task Builder, see the non-deprecated Tasks endpoints in this API reference.

post/v1/task/{taskId}/deploy

Request

  • Base URL
    https://api.anchorbrowser.io
  • Auth
    API key in header anchor-api-key

Path parameters

taskIdstring uuid required

The ID of the task

Request body

codestring

Base64 encoded task code (required for new versions)

language'typescript'

Programming language for the task

descriptionstring

Optional description of the version

Example request

{
  "browserConfiguration": {
    "tags": [
      "production",
      "scraping",
      "customer-123"
    ],
    "domain_allowlist": [
      "example.com",
      "example.org"
    ]
  }
}

Response

Task deployed successfully

Example response

{
  "data": {
    "browserConfiguration": {
      "tags": [
        "production",
        "scraping",
        "customer-123"
      ],
      "domain_allowlist": [
        "example.com",
        "example.org"
      ]
    }
  }
}

Changes

    • info

      added the new optional request property /

    • info

      added the optional property // to the response with the status

    • info

      endpoint added