/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Request serializer for ProgramLicenseGroupAssignmentView POST endpoint. * * This serializer validates the request data for creating or updating a program license group assignment. * Group assignments will automatically create individual assignments for all users in the group. * * Fields: * license_id: The ID of the program license to assign * group_id: The ID of the user group to assign the license to * platform_key: The unique identifier for the platform (for permission validation) * platform_org: The organization identifier for the platform (for permission validation) * active: Whether the group assignment should be active * fulfilled: Whether the group assignment should be marked as fulfilled * redirect_to: URL to redirect to after fulfillment * metadata: Additional metadata for the group assignment * * Notes: * - All users in the group will receive individual license assignments * - The license must have enough available seats for all users in the group * - If the license doesn't have enough seats, the operation will fail * - Users who already have a direct assignment to this license will not be affected */ export type ProgramLicenseGroupAssignmentCreate = { /** * The ID of the program license to assign */ license_id: number; /** * The ID of the user group to assign the license to */ group_id: number; /** * The unique identifier for the platform (for permission validation) */ platform_key?: string; /** * The organization identifier for the platform (for permission validation) */ platform_org?: string; /** * Whether the group assignment should be active */ active?: boolean; /** * Whether the group assignment should be marked as fulfilled */ fulfilled?: boolean; /** * URL to redirect to after fulfillment */ redirect_to?: string | null; /** * Additional metadata for the group assignment */ metadata?: Record; };