{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/hooks/v1/trigger-hook-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "anyOf": [
    {
      "additionalProperties": false,
      "description": "Response identifying the created task",
      "properties": {
        "status": {
          "additionalProperties": false,
          "description": "Another copy of the taskId, at the location where it was published in\nTaskcluster versions before v42.  Prefer to use the top-level property,\nas `status.taskId` may be removed in future versions.\n",
          "properties": {
            "taskId": {
              "pattern": "^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$",
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "taskId": {
          "description": "TaskId of the task created by triggering the hook.\n",
          "pattern": "^[A-Za-z0-9_-]{8}[Q-T][A-Za-z0-9_-][CGKOSWaeimquy26-][A-Za-z0-9_-]{10}[AQgw]$",
          "title": "Task Identifier",
          "type": "string"
        }
      },
      "required": [
        "taskId"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "description": "Empty response indicating no task was created",
      "properties": {},
      "required": [],
      "type": "object"
    }
  ],
  "description": "Response to a `triggerHook` or `triggerHookWithToken` call.\n\nIn most cases, this gives a `taskId`, but in cases where the hook template\ndoes not generate a task, it is an empty object with no `taskId`.\n",
  "title": "Trigger Hook Response"
}