Domains of expertise

Domains of expertise represent domains of expertise associated with a supplier. They are used to store the domains of expertise the supplier can work with.

The Domain of expertise object

Properties

  • idstring

    The id of the domain of expertise.

  • namestring

    The name of the domain of expertise.

Domain object

{	
  "id": "6548c11c5136b418fd626e45",
  "name": "Art & Culture",
}

POST/v2/suppliers/:id/domains/:domainId

Add a domain of expertise

This endpoint allows you to add a domain of expertise.

Parameters

    Request

    POST
    /v2/suppliers/:id/domains/:domainId
    curl https://api.lsp.expert/v2/suppliers/6548c72a13162e1d7ade0290/domains/6548c11c5136b418fd626e45 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "John Smith",
      "address": {
        "name": "John Smith"
      },
      "archived": false,
      "domains": [{	
        "id": "6548c11c5136b418fd626e45",
        "name": "Art & Culture",
      }]
      // ...
    }
    
    

    DELETE/v2/suppliers/:id/domains/:domainId

    Delete a domain of expertise

    This endpoint allows you to delete a domain of expertise.

    Request

    DELETE
    /v2/suppliers/:id/domains/:domainId
    curl -X DELETE https://api.lsp.expert/v2/suppliers/66f1313f9e477f90664d1ad8/domains/6548c11c5136b418fd626e45 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "John Smith",
      "address": {
        "name": "John Smith"
      },
      "archived": false,
      "domains": []
      // ...
    }