{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phoenix/json-schema/phoenix-upsert-or-delete-secrets-request-schema.json",
  "title": "UpsertOrDeleteSecretsRequest",
  "description": "Request body for the PUT /secrets endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phoenix-secrets-api-openapi.yml#/components/schemas/UpsertOrDeleteSecretsRequest",
  "properties": {
    "secrets": {
      "items": {
        "$ref": "#/$defs/SecretKeyValue"
      },
      "type": "array",
      "title": "Secrets"
    }
  },
  "type": "object",
  "required": [
    "secrets"
  ],
  "$defs": {
    "SecretKeyValue": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "title": "Value",
          "description": "Provide a string to create or update the secret, or explicit null to delete it. This field is required; omitting it returns 422."
        }
      },
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "title": "SecretKeyValue",
      "description": "A single secret entry specifying a key and a required nullable value."
    }
  }
}