cURL
curl --request POST \ --url https://qwoty.app/api/catalogs \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "api_name": "<string>", "reference": "<string>", "description": "<string>", "is_active": true, "id_crm": "<string>", "id_erp": "<string>", "id_accounting": "<string>" } '
{ "success": true, "data": { "id": "660e8400-e29b-41d4-a716-446655440001", "name": "Premium Products", "api_name": "premium_products", "reference": "CAT-002", "description": "Catalog for premium tier products", "is_active": true, "id_crm": null, "id_erp": null, "id_accounting": null, "created_at": "2024-12-21T10:30:00Z", "updated_at": "2024-12-21T10:30:00Z" } }
Create a new catalog in your workspace
Bearer qwoty_your_token
curl -X POST https://qwoty.app/api/catalogs \ -H "Authorization: Bearer qwoty_your_token" \ -H "Content-Type: application/json" \ -d '{ "name": "Premium Products", "description": "Catalog for premium tier products", "reference": "CAT-002", "is_active": true }'
{ "success": false, "error": "Validation error", "details": { "name": "Name is required" } }
Was this page helpful?