Skip to main content
POST
Batch Associate Datasets With Model

Authorizations

Authorization
string
header
required

JWT token from Stytch B2B authentication (magic link, SSO, or M2M)

Headers

Idempotency-Key
string | null

Path Parameters

model_id
string
required

Model ID

Example:

"model_abc123"

Body

application/json

Schema for associating multiple datasets with a model in a single request.

datasets
ModelDatasetCreate · object[]
required

List of datasets to associate with the model (max 50 per request)

Required array length: 1 - 50 elements
Example:

Response

Successful Response

Response for batch dataset association creation.

created
ModelDatasetOut · object[]
required

Successfully created associations

skipped
Skipped · object[]

Datasets that were skipped (already associated)

Example: