PUT
/
api
/
departments
/
{id}
/
image
curl --request PUT \
  --url http://localhost/api/departments/{id}/image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

multipart/form-data
image
file
required

Response

200
*/*
Department image uploaded successfully
success
boolean