POST /managers/{id} – REST API

Update a Manager: POST /managers/{id}

Update specific fields for an existing manager.

Query Parameters

  • id: A unique ID for the manager – parameter accepts either the username or email.

URL Parameters
Values should be paramaterized such as using http_build_query() as per example below. Do not include parameters unnecessarily.

  • first_name: Manager’s first name. (If included, can not be empty)
  • last_name: Manager’s last name. (If included, can not be empty)
  • email: Manager’s email, must be unique. (If included, can not be empty)
  • username: Manager’s username, must be unique. Alphanumeric only, 2-15 characters, no spaces. (If included, can not be empty)
  • password: Manager’s password. Minimum 8 characters. (If included, can not be empty)
  • role: Allowed values: admin, basic. Owner’s role can not be changed. (If included, can not be empty)

JSON Result Details
Password is never returned in result set.

  • first_name: Manager’s first name.
  • last_name: Manager’s last name.
  • email: Manager’s email.
  • username: Manager’s username.
  • role: The managerial role for this user.

Was this article helpful?

Related Articles