{
  "name": "RotateWorkloadKey",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "rest",
    "method": "POST",
    "path": "/auth/workload-keys/{principalId}/rotate",
    "query": [],
    "headers": [
      "authorization"
    ],
    "body": false
  },
  "requestBody": "explicitlyEmpty",
  "responseBody": "json",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "principalId": {
        "type": "string"
      }
    },
    "required": [
      "principalId"
    ],
    "title": "RotateWorkloadKeyRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "accessKeyId": {
        "type": "string"
      },
      "previousAccessKeyId": {
        "type": "string"
      },
      "principalId": {
        "type": "string"
      },
      "secretAccessKey": {
        "type": "string",
        "writeOnly": true,
        "x-one-time-secret": true,
        "x-sensitive": true
      }
    },
    "required": [
      "accessKeyId",
      "previousAccessKeyId",
      "principalId",
      "secretAccessKey"
    ],
    "title": "RotateWorkloadKeyResponse",
    "type": "object"
  }
}
