{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/if/json-schema/if-user-invitation-update-platform-request-schema.json",
  "title": "UserInvitationUpdatePlatformRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/if-user-invitations-api-openapi.yml#/components/schemas/UserInvitationUpdatePlatformRequest",
  "required": [
    "connect",
    "data",
    "metadata",
    "workflow"
  ],
  "type": "object",
  "properties": {
    "workflow": {
      "$ref": "#/$defs/UserInvitationUpdatePlatformWorkflowContainer"
    },
    "data": {
      "$ref": "#/$defs/UserInvitationUpdatePlatformDataContainer"
    },
    "connect": {
      "$ref": "#/$defs/UserInvitationUpdatePlatformConnectContainer"
    },
    "metadata": {
      "$ref": "#/$defs/UserInvitationUpdatePlatformMetadataContainer"
    }
  },
  "$defs": {
    "UserClientRelationType": {
      "type": "string",
      "description": "user's relation with client",
      "enum": [
        "director",
        "shareholder",
        "director-and-shareholder",
        "authorized-person"
      ]
    },
    "UserInvitation": {
      "required": [
        "clientId",
        "id",
        "status",
        "userClientRelation"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "format": "uuid"
        },
        "userClientRelation": {
          "$ref": "#/$defs/UserClientRelationType"
        },
        "status": {
          "$ref": "#/$defs/UserInvitationStatus"
        }
      }
    },
    "UserInvitationStatus": {
      "type": "string",
      "description": "status of invitation",
      "readOnly": true,
      "enum": [
        "accepted",
        "pending",
        "rejected",
        "cancelled"
      ]
    },
    "UserInvitationUpdatePlatformConnectContainer": {
      "type": "object"
    },
    "UserInvitationUpdatePlatformDataContainer": {
      "type": "object",
      "properties": {
        "userInvitation": {
          "$ref": "#/$defs/UserInvitation"
        }
      }
    },
    "UserInvitationUpdatePlatformMetadataContainer": {
      "type": "object"
    },
    "UserInvitationUpdatePlatformWorkflowContainer": {
      "required": [
        "code"
      ],
      "type": "object",
      "properties": {
        "code": {
          "$ref": "#/$defs/UserInvitationUpdateWorkflow"
        }
      }
    },
    "UserInvitationUpdateWorkflow": {
      "type": "string",
      "description": "workflow code",
      "enum": [
        "direct"
      ]
    }
  }
}