Tasks (Legacy)

Publish Task Version (Legacy)

Changed on

Publishes a specific version of a task. This creates a new version if it doesn't exist, or updates an existing version's metadata.

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

post/v1/task/{taskId}/{taskVersion}

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

taskVersionstring required

The version to publish (cannot be draft)

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 version published 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