{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-code-body-schema.json",
  "title": "CodeBody",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-login-api-openapi.yml#/components/schemas/CodeBody",
  "type": "object",
  "properties": {
    "code": {
      "description": "The code from the query parameter of the URL the user is redirected to after a successful login",
      "type": "string"
    },
    "access-token-lifetime-in-sec": {
      "description": "You can optionally reduce the lifetime of access tokens returned. This parameter will set the lifetime to your preferred choice but you will not be allowed to make the lifetime longer than the configured value. If you try to put a longer lifetime, it will silently returns the token with the configured lifetime.",
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false,
  "required": [
    "code"
  ]
}