Dedicated clients
Dedicated clients represent dedicated clients associated with a supplier. They are used to defined if a supplier is preferred when working with a specific client.
The Dedicated client object
Properties
- idstring- The id of the client. 
- namestring- The name of the client. 
Client object
{	
  "id": "6548c11c5136b418fd626e45",
  "name": "Microsoft",
}
POST/v2/suppliers/:id/dedicated-clients/:clientId
Add a dedicated client
This endpoint allows you to add a dedicated client.
Parameters
Request
POST
/v2/suppliers/:id/dedicated-clients/:clientIdcurl https://api.lsp.expert/v2/suppliers/6548c72a13162e1d7ade0290/dedicated-clients/6654468b366ad245719322f4 \
  -u {key}:
Response
{
  "id": "6548c72a13162e1d7ade0290",
  "name": "John Smith",
  "address": {
    "name": "John Smith"
  },
  "archived": false,
  "dedicatedClients": [{	
    "id": "6654468b366ad245719322f4",
    "name": "Microsoft",
  }]
  // ...
}
DELETE/v2/suppliers/:id/dedicated-clients/:clientId
Delete a dedicated client
This endpoint allows you to delete a dedicated client.
Request
DELETE
/v2/suppliers/:id/dedicated-clients/:clientIdcurl -X DELETE https://api.lsp.expert/v2/suppliers/66f1313f9e477f90664d1ad8/dedicated-clients/6654468b366ad245719322f4 \
  -u {key}:
Response
{
  "id": "6548c72a13162e1d7ade0290",
  "name": "John Smith",
  "address": {
    "name": "John Smith"
  },
  "archived": false,
  "dedicatedClients": []
  // ...
}