Tasks (Legacy)

Create or Update Task Draft (Legacy)

Changed on

Creates or updates the draft version of a task. Draft versions are used for development and testing before publishing.

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

post/v1/task/{taskId}/draft

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 required

Base64 encoded task code

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 draft created or updated 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