Skip to main content
PATCH
Batch Update Model-Dataset Associations

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 batch updating multiple model-dataset associations.

datasets
ModelDatasetBatchUpdateItem · object[]
required

List of dataset updates to apply (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: