- Notifications
You must be signed in to change notification settings - Fork106
Open
Description
Hi! This POST-request create row in many-to-many table:
{ "data": { "type": "legal-entity-warehouse-days", "attributes": { }, "relationships": { "legal-entity-warehouse": { "data": { "id": "8", "type": "legal-entity-warehouses" } }, "warehouse-day": { "data": { "id": "1", "type": "warehouse-days" } } } }}In tablelegal-entity-warehouse-days has unique key (legal_entity_warehouse_id - warehouse_day_id).
If you send a post request several times, there will be an error duplicating a unique composite key.
How to fix it?
Metadata
Metadata
Assignees
Labels
No labels