code: function updateUser (id, data, options) {
    options = options || {}
    options.url = '/v1/users/' + id
    options.method = 'PATCH'
    options.json = data
    return request.bind(this)(options)
  }
docs: Updates a user via a REST request to the AnvilConnect server's /users API.
  Note: You cannot update a user's password using this call (the field gets
  ignored by the /users endpoint).
  @method updateUser
  @param id {String} User ID (`sub` in the ID Token)
  @param data {Object} User details object
  @param options {Object} Options hashmap object
  @param options.token {String} (Required) Access token. Gets sent as an
  Authorization: Bearer <token> header.
  @param [options.headers={}] {Object} Optional hashmap of additional headers
  @return {Promise<Request>}