Create a department

post/departments

Request

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

Request body

namestring required

Department name

Response

200

statusstring
messagesstring

Example response

{
  "status": "success",
  "messages": "Department created successfully.",
  "payload": {
    "name": "Human Resources",
    "user_id": 2,
    "updated_at": "2018-10-31 17:13:32",
    "created_at": "2018-10-31 17:13:32",
    "id": 45
  }
}

Changes