{
  "name": "AcquireRunLock",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "POST",
    "path": "/auth/workspaces/{workspace}/runs/lock/acquire",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": true
  },
  "requestBody": "json",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "command": {
        "type": "string"
      },
      "pipeline": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      },
      "runId": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      },
      "workspace": {
        "type": "string"
      }
    },
    "required": [
      "command",
      "workspace"
    ],
    "title": "AcquireRunLockRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "leaseExpiresAt": {
        "type": "string"
      },
      "runId": {
        "type": "string"
      },
      "version": {
        "format": "int64",
        "type": "integer"
      }
    },
    "required": [
      "leaseExpiresAt",
      "runId",
      "version"
    ],
    "title": "AcquireRunLockResponse",
    "type": "object"
  }
}
