{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackit/main/json-schema/stackit-partial-update-token-payload-schema.json",
  "title": "PartialUpdateTokenPayload",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-model-serving-openapi.yml#/components/schemas/PartialUpdateTokenPayload",
  "properties": {
    "description": {
      "maxLength": 2000,
      "pattern": "^[0-9a-zA-Z\\s.:\\/\\-]+$",
      "type": "string"
    },
    "labels": {
      "$ref": "#/$defs/LabelPatch"
    },
    "name": {
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[0-9a-zA-Z\\s_-]+$",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "LabelPatch": {
      "additionalProperties": {
        "pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$",
        "type": [
          "string",
          "null"
        ]
      },
      "description": "Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Send empty object {} to remove all labels. The `stackit` prefix is reserved and cannot be used for Keys.",
      "format": "json",
      "maxProperties": 64,
      "type": "object"
    }
  }
}