Skip to main content

AssignModelsToProject

POST 

/v1/customers/:customer_id/projects/:project_id/models:assign

AssignModelsToProject grants a project access to up to 100 catalog models in one call. Each model gets the checks of AssignModelToProject, and a refusal of one model does not stop the others: the reply has one result for each distinct model id, in request order, with the code that AssignModelToProject returns for that model.

The project's routes are regenerated once, after the grants commit, and not once for each model.

A failure that is not about one model fails the call: the caller's scope, a malformed request, a missing project, or an internal error. Grants that committed before an internal error stay, and their routes are regenerated. A retry is safe, because a grant of a model the project has succeeds.

Request​

Responses​

Success