Subjects
Create Subjects (Batch)
Create multiple subjects in a single request
POST
Overview
Batch creation allows you to create multiple subjects in a single API call. This is more efficient than making individual requests and supports in-batch ID references. Each subject can optionally include inline memberships with role assignments.ID Format: All IDs use a namespaced UUIDv7 format:
subject_{uuidv7}. You can optionally provide your own IDs for in-batch references.Request Body
Array of subject objects:Optional client-provided ID. Useful for referencing within the same batch. Must be unique.
Subject type. One of:
user, api_key, service, agentExternal identifier for the subject
Display name for the subject
Optional metadata to associate with the subject
Optional inline memberships with role assignments. Creates memberships and role assignments in a single request.
ID of the scope to add the subject to
Optional array of role IDs to assign to the membership