cURL
curl --request POST \ --url http://localhost:3000/api/models \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "team_id": "<string>" } '
{ "id": "<string>", "user_id": "<string>", "name": "<string>", "access_control_list": [ { "roles": [ { "name": "<string>", "permissions": [ { "action": "View", "scopes": [ "<string>" ] } ] } ], "user_id": "<string>", "group_id": "<string>", "invite_id": "<string>", "email": "[email protected]" } ], "created_at": "2023-11-07T05:31:56Z" }
Creates a new model within a team workspace. Models can only be created when associated with a specific team, and only by users with Admin or Owner roles.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Name of the model
ID of the team workspace where the model will be created
Model created successfully
Unique identifier for the model
ID of the user who owns this model
Access control list for the model
Show child attributes
Creation timestamp