> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# Set custom definition exposure

Toggle exposure with expectedRevision; returns the updated definition and affectedValueCount of valid values on published/hidden activities so the visibility consequence is explicit. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.

```json
{
  "operations": [
    {
      "method": "post",
      "path": "/v1/management/custom-definitions/{id}/exposure",
      "tags": [
        "management"
      ]
    }
  ],
  "schema": {
    "openapi": "3.2.0",
    "info": {
      "title": "Buchung Storefront API",
      "version": "1.0.0",
      "description": "Public catalogue reads and hosted-checkout handoff scoped to a booking channel, plus bearer-only machine management. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Storefront reads enforce a 4 MiB per-page custom-fact budget; result_too_large maps to the 400 validation_failed envelope without truncation. Use GET for simple catalogue queries with the raw request target strictly below 8 KiB (414 validation_failed otherwise); use the corresponding POST /query form when conditions or selections outgrow a URL. POST accepts the decoded GET fields as JSON, including the same defaults, errors and response schemas, uses the same read limiter bucket and returns Cache-Control: private, no-store. There are no per-parameter where/facets character caps. Management caps every method with a body at 64 KiB before parsing; storefront POST bodies are capped at 16 KiB before parsing (413 payload_too_large)."
    },
    "paths": {
      "/v1/management/custom-definitions/{id}/exposure": {
        "post": {
          "tags": [
            "management"
          ],
          "operationId": "management.setExposure",
          "parameters": [
            {
              "name": "id",
              "in": "path",
              "schema": {
                "$ref": "#/components/schemas/Id"
              },
              "required": true,
              "description": "Stable resource UUID scoped to the authenticated operator; see Id."
            }
          ],
          "security": [
            {
              "integrationBearer": []
            }
          ],
          "responses": {
            "200": {
              "description": "Updated definition and affectedValueCount of valid stored values on published/hidden activities affected by the exposure change.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/CustomExposureResult"
                  }
                }
              }
            },
            "400": {
              "description": "ValidationFailed",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ValidationFailedEncoded"
                  }
                }
              }
            },
            "401": {
              "description": "Unauthorized",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/UnauthorizedEncoded"
                  }
                }
              }
            },
            "403": {
              "description": "Forbidden",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ForbiddenEncoded"
                  }
                }
              }
            },
            "404": {
              "description": "NotFound",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/NotFoundEncoded"
                  }
                }
              }
            },
            "409": {
              "description": "The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/RevisionConflictEncoded"
                  }
                }
              }
            },
            "413": {
              "description": "PayloadTooLarge",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/PayloadTooLargeEncoded"
                  }
                }
              }
            },
            "429": {
              "description": "RateLimited",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/RateLimitedEncoded"
                  }
                }
              }
            },
            "500": {
              "description": "Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/InternalErrorEncoded"
                  }
                }
              }
            },
            "503": {
              "description": "ServiceUnavailable",
              "content": {
                "application/json": {
                  "schema": {
                    "$ref": "#/components/schemas/ServiceUnavailableEncoded"
                  }
                }
              }
            }
          },
          "description": "Toggle exposure with expectedRevision; returns the updated definition and affectedValueCount of valid values on published/hidden activities so the visibility consequence is explicit. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.",
          "summary": "Set custom definition exposure",
          "requestBody": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomExposure"
                }
              }
            },
            "required": true
          }
        }
      }
    },
    "security": [],
    "tags": [
      {
        "name": "activities"
      },
      {
        "name": "availabilities"
      },
      {
        "name": "bookingOptions"
      },
      {
        "name": "site"
      },
      {
        "name": "checkout"
      },
      {
        "name": "management"
      }
    ],
    "servers": [
      {
        "url": "https://api.buchungapp.com"
      }
    ],
    "components": {
      "schemas": {
        "UnauthorizedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "unauthorized"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/unauthorized"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ErrorDetail": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "path",
            "message"
          ],
          "additionalProperties": false,
          "description": "A validation issue at a request field path."
        },
        "Revision": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991,
          "description": "Monotonic integer optimistic-concurrency revision assigned from a database sequence, starting at 1. Not dense: gaps are normal. Clients compare equality only. A value slot never reuses a revision across delete/recreate, so a stale expectedRevision always conflicts."
        },
        "Language": {
          "type": "string",
          "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$",
          "maxLength": 35,
          "description": "Matched case-insensitively against the operator's supported locale codes and normalized to the stored code. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. Accepted locale codes form a closed set per operator, discovered from Site.locales; syntactically valid codes do not imply support. Management uses explicit locales without fallback; unsupported locales return 400 validation_failed."
        },
        "CustomDefinitionKey": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9-]{1,63}$",
          "description": "Stable operator-scoped key, 2..64 characters matching ^[a-z][a-z0-9-]{1,63}$; never reused after retirement."
        },
        "Id": {
          "type": "string",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
          "format": "uuid",
          "description": "Stable UUID of a public resource."
        },
        "RevisionConflictEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "revision_conflict"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/revision_conflict"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "object",
                  "properties": {
                    "currentRevision": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/Revision"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currentValue": {
                      "$ref": "#/components/schemas/CustomValuePayloadEncoded"
                    }
                  },
                  "required": [
                    "currentRevision"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id",
                "details"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "CustomValuePayloadEncoded": {
          "description": "Server validates the definition codec: text trimmed plain text, maxLength 1..4000 (default 1000), no control characters except newline/tab; text_list maxItems 1..50 (default 20), each item <= 500 characters, whole-list replacement; boolean strict; number finite with |value| <= 1e15, integer/min/max and precision 0..6, no rounding; choice one declared option key; json <= 16 KiB serialized UTF-8, depth <= 16, <= 5000 nodes, keys <= 128 characters, strings <= 8 KiB, rejects __proto__/constructor/prototype; pdf { documentId } must name a live document of the same operator whose current file is a validated catalogue PDF, never an upload candidate's mediaId; public projection additionally requires the document to be published, so a reference to an unpublished document is stored but stays absent from the storefront. For json definitions only, explicit JSON null is a stored value distinct from deletion. Cumulative serialized custom values per activity are capped at 64 KiB at write time; exceeding the budget returns 400 validation_failed with a budget detail. Retired definitions block new value writes and public projection but allow deleting stored values. Host caps management request bodies at 64 KiB before parsing."
        },
        "ForbiddenEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "forbidden"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/forbidden"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "PayloadTooLargeEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "payload_too_large"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/payload_too_large"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "NotFoundEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "not_found"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/not_found"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "InternalErrorEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "internal_error"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/internal_error"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ServiceUnavailableEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "service_unavailable"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/service_unavailable"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "RateLimitedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "rate_limited"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/rate_limited"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "ValidationFailedEncoded": {
          "type": "object",
          "properties": {
            "error": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "validation_failed"
                  ],
                  "description": "Closed error discriminator for this HTTP error variant."
                },
                "message": {
                  "type": "string"
                },
                "doc_url": {
                  "type": "string",
                  "enum": [
                    "https://api.buchungapp.com/v1/docs#errors/validation_failed"
                  ],
                  "description": "Closed documentation URL corresponding to this error code."
                },
                "request_id": {
                  "type": "string"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDetail"
                  }
                }
              },
              "required": [
                "code",
                "message",
                "doc_url",
                "request_id"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false
        },
        "Instant": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
          "format": "date-time",
          "description": "ISO 8601 absolute instant with explicit UTC offset (including Z). Render using the resource's documented display timezone; the serialized offset need not equal that zone."
        },
        "CustomDefinition": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "maxLength": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4000
                    }
                  },
                  "required": [
                    "maxLength"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text_list"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "maxItems": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 50
                    }
                  },
                  "required": [
                    "maxItems"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "boolean"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "number"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "integer": {
                      "type": "boolean"
                    },
                    "min": {
                      "$ref": "#/components/schemas/CustomNumber"
                    },
                    "max": {
                      "$ref": "#/components/schemas/CustomNumber"
                    },
                    "precision": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "choice"
                  ]
                },
                "localized": {
                  "type": "boolean",
                  "enum": [
                    false
                  ]
                },
                "constraints": {
                  "type": "object",
                  "properties": {
                    "options": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "$ref": "#/components/schemas/CustomOptionKey"
                          }
                        },
                        "required": [
                          "key"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    }
                  },
                  "required": [
                    "options"
                  ],
                  "additionalProperties": false
                },
                "optionLabels": {
                  "$ref": "#/components/schemas/CustomOptionLabels"
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "json"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "key": {
                  "$ref": "#/components/schemas/CustomDefinitionKey"
                },
                "labels": {
                  "$ref": "#/components/schemas/CustomLabels"
                },
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "exposed": {
                  "type": "boolean"
                },
                "valueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991,
                  "description": "Number of stored values across activities."
                },
                "retiredAt": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Instant"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revision": {
                  "$ref": "#/components/schemas/Revision"
                },
                "createdAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/Instant"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "pdf"
                  ]
                },
                "localized": {
                  "type": "boolean"
                },
                "constraints": {
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "key",
                "labels",
                "id",
                "exposed",
                "valueCount",
                "retiredAt",
                "revision",
                "createdAt",
                "updatedAt",
                "type",
                "localized",
                "constraints"
              ],
              "additionalProperties": false
            }
          ],
          "description": "Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection."
        },
        "CustomLabels": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/components/schemas/Language"
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 120
          },
          "description": "Explicit locale-to-label translations, at most 120 characters per label. Locale keys match case-insensitively; the server rejects unsupported locales and keys colliding after normalization."
        },
        "CustomOptionLabels": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/components/schemas/CustomOptionKey"
          },
          "additionalProperties": {
            "$ref": "#/components/schemas/CustomLabels"
          },
          "description": "Choice option key to explicit locale-to-label translations."
        },
        "CustomOptionKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Bounded opaque catalogue key (fact set, field, choice, facet or option).",
          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
        },
        "CustomNumber": {
          "type": "number",
          "minimum": -1000000000000000,
          "maximum": 1000000000000000,
          "description": "Finite custom number with |value| <= 1e15."
        },
        "CustomExposureResult": {
          "type": "object",
          "properties": {
            "definition": {
              "$ref": "#/components/schemas/CustomDefinition"
            },
            "affectedValueCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "definition",
            "affectedValueCount"
          ],
          "additionalProperties": false,
          "description": "Updated definition and affectedValueCount of valid stored values on published/hidden activities affected by the exposure change."
        },
        "CustomExposure": {
          "type": "object",
          "properties": {
            "exposed": {
              "type": "boolean"
            },
            "expectedRevision": {
              "$ref": "#/components/schemas/Revision"
            }
          },
          "required": [
            "exposed",
            "expectedRevision"
          ],
          "additionalProperties": false
        }
      },
      "securitySchemes": {
        "integrationBearer": {
          "description": "Machine integration credential: Authorization: Bearer bg_it_<32 lowercase hex characters> (^bg_it_[0-9a-f]{32}$). Resolved uncached on each request. Middleware binds the resolved principal once; handlers run under it and never re-derive authority. The request context includes credentialId for per-request logging alongside machineId, operatorId, organizationId and capabilities; the principal is opaque and server-owned. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Invalid, expired, revoked, disabled or ungranted credentials return 401 unauthorized.",
          "type": "http",
          "scheme": "Bearer"
        }
      }
    }
  }
}
```
