/departments/:id

Changed on

Edit a department

patch/departments/{id}

Request

  • Base URL
    https://develop.snipeitapp.com/api/v1
  • URL
    https://develop.snipeitapp.com/api/v1/departments/{id}
  • Auth
    none required

Path parameters

idinteger required

Request body

namestring required

Department name

Response

200

statusstring
messagesstring

Example response

{
  "status": "success",
  "messages": "Department updated successfully.",
  "payload": {
    "id": 1,
    "name": "Human Resources",
    "user_id": 1,
    "location_id": 1,
    "created_at": "2018-10-27 16:36:40",
    "updated_at": "2018-10-27 16:36:40"
  }
}

Changes