Skip to main content
cURL
curl --request PUT \
  --url https://api.openlayer.com/v1/projects/{projectId}/tests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payloads": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<unknown>",
      "description": "<unknown>",
      "archived": "<unknown>",
      "thresholds": "<unknown>",
      "suggested": false
    }
  ]
}
'
{
  "taskResultUrl": "<string>",
  "taskResultId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.

Path Parameters

projectId
string<uuid>
required

The project id.

Body

application/json
payloads
object[]
required

Response

Response OK. Task queued.

taskResultUrl
string
taskResultId
string