Designate tenant to dealer.
The unique ID of tenant.
The unique ID of dealer.
OK
const response = await fetch('http://127.0.0.1:8888/api/tenants/{id}/dealers/{dealer_id}', { method: 'POST', headers: {}, }); const data = await response.json();
Get the dealer to which the tenant belongs.
const response = await fetch('http://127.0.0.1:8888/api/tenants/{id}/dealers', { method: 'GET', headers: {}, }); const data = await response.json();
{ "items": [ { "id": {}, "enabled": true, "level": "DISTRIBUTOR", "name": "text", "display_name": "text" } ] }