Skip to main content
POST
/
api
/
v2
/
runs:adhoc
CreateAdhocRun
curl --request POST \
  --url https://your-sift-api-url.com/api/v2/runs:adhoc \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "stopTime": "2023-11-07T05:31:56Z",
  "assetIds": [
    "<string>"
  ],
  "tags": [
    "<string>"
  ],
  "metadata": [
    {
      "key": {
        "name": "<string>",
        "type": "METADATA_KEY_TYPE_UNSPECIFIED",
        "archivedDate": "2023-11-07T05:31:56Z"
      },
      "stringValue": "<string>",
      "numberValue": 123,
      "booleanValue": true,
      "archivedDate": "2023-11-07T05:31:56Z"
    }
  ],
  "clientKey": "<string>"
}'
{
  "run": {
    "runId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "organizationId": "<string>",
    "startTime": "2023-11-07T05:31:56Z",
    "stopTime": "2023-11-07T05:31:56Z",
    "isPinned": true,
    "name": "<string>",
    "description": "<string>",
    "tags": [
      "<string>"
    ],
    "defaultReportId": "<string>",
    "clientKey": "<string>",
    "metadata": [
      {
        "key": {
          "name": "<string>",
          "type": "METADATA_KEY_TYPE_UNSPECIFIED",
          "archivedDate": "2023-11-07T05:31:56Z"
        },
        "stringValue": "<string>",
        "numberValue": 123,
        "booleanValue": true,
        "archivedDate": "2023-11-07T05:31:56Z"
      }
    ],
    "assetIds": [
      "<string>"
    ],
    "archivedDate": "2023-11-07T05:31:56Z",
    "isAdhoc": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request for a call to RunService_CreateAdhocRun to create an adhoc run.

name
string
required

The name that will be assigned to the new run.

description
string
required

A description about the new run.

startTime
string<date-time>
required
stopTime
string<date-time>
required

The time at which data ingestion concluded for this new run.

assetIds
string[]
required

A list of asset IDs to associate with the new run.

tags
string[]

Tags to associate with the new run.

metadata
object[]

The metadata values associated with this run.

clientKey
string

An arbitrary user-chosen key that uniquely identifies this run. Optional, though it is recommended to provide.

Response

A successful response.

The response of a call to RunService_CreateAdhocRun containing the newly created adhoc run.

run
object
required