{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudbees/main/json-schema/cloudbees-api-auth-create-invites-v3-response-schema.json",
  "title": "api.auth.CreateInvitesV3Response",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudbees-users-api-openapi.yml#/components/schemas/api.auth.CreateInvitesV3Response",
  "type": "object",
  "properties": {
    "sentInvites": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/api.auth.InviteV3"
      },
      "description": "List of invitations that were created and sent."
    }
  },
  "$defs": {
    "api.Audit": {
      "type": "object",
      "properties": {
        "who": {
          "type": "string",
          "description": "UUID of the user that made the change"
        },
        "when": {
          "type": "string",
          "description": "timestamp of the update",
          "format": "date-time"
        },
        "why": {
          "type": "string",
          "description": "reason for the update (optional)"
        }
      },
      "description": "Audit records the person that updated the data last."
    },
    "api.auth.InviteV3": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the invite."
        },
        "orgId": {
          "type": "string",
          "description": "Unique identifier of the organization to which the user is invited."
        },
        "email": {
          "type": "string",
          "description": "Email address of the invited user."
        },
        "teamId": {
          "type": "string",
          "description": "Unique identifier of the team to which the user is invited."
        },
        "teamName": {
          "type": "string",
          "description": "Display name of the team to which the user is invited."
        },
        "redirectUrl": {
          "type": "string",
          "description": "URL the user is redirected to after accepting the invitation."
        },
        "expirationDate": {
          "type": "string",
          "description": "Date and time when the invitation expires.",
          "format": "date-time"
        },
        "audit": {
          "allOf": [
            {
              "$ref": "#/$defs/api.Audit"
            }
          ],
          "description": "Audit metadata including creation and last modification timestamps."
        }
      }
    }
  }
}