Menu

Create Supplier Model

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.

POST https://api-staging-v2.logyx.it/v1/suppliers/{id}/models

Body

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.

Example

{
    "general": {
        "name": "Example"
    }
}

Response

{
    "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": []
}

Possible responses


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.

Menu