Menu

Get Supplier Model

Get all models belonging to a supplier if the current authenticated user belongs to this supplier. If this user is admin, it can query any supplier.
To call any /suppliers/{id}/models endpoints, you need to use a JWT token or an API token for authorization.

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

Response

{
    "code": 200,
    "message": "OK; models found.",
    "data": [
        {
            "id": "int",
            "version_number": "int",
            "created_at": "string",
            "updated_at": null,
            "locked_by_id": null,
            "general": {
                "name": "string"
            }
        }
    ],
    "links": {},
    "errors": []
}

Possible responses


200 OK; Models found.

401 User is not part of this supplier.

404 No models found.

Menu