Users API

Update a user's details

PUT /api/users/:id

Parameters

Name Description
id Id of a user
first_name First Name
last_name Last Name
email E-mail
title Title
dept Department
notes Notes
admin Make the user an admin. (Only allowed if the authenticated user is an admin)

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=SEErYXQzVTBJV2cwVWhwbGl4RExuV2pWSE1lTU5jUERwaFh1eFl1S05kY2RISUpVYitjM1RpMVZJSHdYSlhsL2JyWXIwR0RtanBIMm1wNG4rS1VKVDNNNkhTOUI3WlJ5V01BazlJazVoVGN6eFFvWk0yNDdVZ3duYi91cXk5b2NMdlVHVWRyOFJpeHF0VE51bDFOczNpWFVOUUd3aVF6M2lENXh3ZlpYdWlka29Yc0t6WDRlTFdBZlBLV3dYQkhYbWpZYmtZcnVkSmdLZ2FaeFNMQ0NDelNEaVk1Ly9ucm1Nbm5RL3E4N2tyTEwrTmpUYlVGaE9GVTdJdlczZEY0aEY1STA1clRLSmZiMEhpQ3Y4T2hrTEhxd2JyY1BuMXF0Q295amdMK0NWUlRNY0VFVks1RkExYzNOaW1YVGVCanNaUklCTnVPREt6WXFaYmQ2M05FV09mUzFTQWl1a1lERllya1AzNGsrcHg0elViRFA0QlNlTElWRi9jaUFZLzNtWEJtdVNJZUhKQ1ZVUDlxUXA1NzdSbmY1RnkvbFBzb0ZNYzZDclpIbEtuWT0tLUpUTkFoa0Y1TzBlZWtmUWFMVEVHc2c9PQ%3D%3D--0a52ebb0b32ca7a047baa739c66c429eb2af1f46

Route

PUT /api/users/1000007

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"6f130ea29836cebb11e3183b4107c05f"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=WVlxNVd6QVJUVEZ0SmYwYm9lM1BMRFNVaFVwRjNwcXJzZ0hrY285bkNrWHFadmVkV1JMZTJlQzIwczdmcS9JdkRsdFY3TmZsUTUycFVBeXFVYjJTcXhTdVk2UlkrMDZxRXBoZmVUaUplN3k4eVpuSmZuMWNiT1hSTW8veHpNYjNMeWgzcXFVNHlFVE13UFdHMkZZMW1CUXVHbUpiM2I4QWRha1RLeXQ4TXhXOXlvWjUxZlowVlphdXJGVHZNT3p6VGVnL0RFR2tWVFNld0Y3MlVDNlE3VExJTE41a2V3emZrYzJway9IQmIzNGhPUjkyZktnRWQrSUg5a0g4L3FhMHFqc0VOZnY0bElqZTVjemY4bDg0bDdmb2hsYUFnbVJwRDVxdXlBZFNaYnZFQUhFZVB3dlh5WHZMS01WRFJTVUJaWW5aQ1N0VzBKOEVNSHNFWEhobjRUd3hUMjFSNm9wMExrbTJyU0R0SHJXaHRDb21WNWRLUzQ4MHZiMnAxZ0Zka2VuL1J2YWIzUE9sd2g1N1lzblpZUlp5RWJ0c2tBSEtPOFM2UlpJMmNSYlhBTUNhaFUvUEh6ZGV0SExGTXBVcS0tZmZvRHpNYTJpUG9HemJmTDU0VkcrUT09--143a20384fa6856dcbe378297c993bff0479a018; path=/; HttpOnly
X-Request-Id: afb372f1-5634-4955-b6e4-e1d55385b156
X-Runtime: 0.068972
Content-Length: 561

Status

200 OK

Body