List Departments

GET:  /v1/b2b/departments

returns back a list of all departments unpaginated

Get a Department

GET:  /v1/b2b/departments/:id

returns the department associated with the id

Create a Department

POST:  /v1/b2b/departments

creates a new department

Update a Department

PUT:  /v1/b2b/departments

updates the department with the specified id

Delete a Department

DELETE: /v1/b2b/departments/:id

Deletes the department with the specified ID.

Departments JSON Objects

  • ID:  read only, id of the department
  • name: Name of the department

 

Departments Schema
{
  "id" "a242507c-2c9c-4e3d-8515-f20ab4d07196",
  "name" "European Painting Tours"
}