{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carbon-arc/json-schema/carbon-arc-reset-credentials-request-schema.json",
  "title": "ResetCredentialsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carbon-arc-polaris-api-openapi.yml#/components/schemas/ResetCredentialsRequest",
  "properties": {
    "principal_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9_-]+$",
      "title": "Principal Name"
    },
    "client_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Id",
      "description": "Optional; if set, client_secret must also be set (Polaris reset body)."
    },
    "client_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Secret",
      "description": "Optional; if set, client_id must also be set (Polaris reset body)."
    }
  },
  "type": "object",
  "required": [
    "principal_name"
  ]
}