Create a new model belonging to this supplier.
Only members of the supplier can create a new model. Admins can create for any supplier.
To call any
/suppliers/{id}/models
endpoints, you need to use a JWT token or an API token for authorization.
The body for this endpoint is a model, so it can be as big as you like. Please see documentation about models.
The body can be of type json, yml or a zip.
{
"general": {
"name": "Example"
}
}
{
"code": 201,
"message": "Created",
"data": {
"id": "int",
"version_number": "int",
"created_at": "string",
"updated_at": null,
"locked_by_id": null,
"general": {
"name": "string"
}
},
"links": {},
"errors": []
}
201
Created.
401
User is not part of this supplier.
404
This supplier does not exist.
401
User is not part of this supplier.
400
Bad request.