{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-create-service-account-api-key-request-schema.json",
  "title": "create-service-account-api-key-request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-service-accounts-api-openapi.yml#/components/schemas/create-service-account-api-key-request",
  "type": "object",
  "properties": {
    "comment": {
      "maxLength": 255,
      "type": "string"
    },
    "expires_in_days": {
      "minimum": 1,
      "type": "integer",
      "description": "Number of days from now after which the key expires. Must not exceed the maximum lifetime configured with `dt.api-key.max-lifetime-days` (366 days by default). Defaults to 30 days, or the maximum lifetime if that is shorter.",
      "format": "int32"
    }
  }
}