Update User


Description

This method updates an existing user in the system.

Authentication

Requires HTTP BASIC authentication. The authenticating user must be an admin over the creditor.

HTTP Methods

Accepts POST requests.

URI

/api/users/{userUuid}

Path Variables

Name Required/Optional Description Validation
userUuid required The UUID of the user in the system User UUID should exist in the system.

Parameters

Name Required/Optional Description Validation
debtorUuid required The uuid of the debtor Debtor UUID should exist in the system.

Curl Example

Request

curl -u apiuser:test -H "Accept: application/json" -H "Content-Type: application/json; charset=UTF-8" -X PUT -d "{\"debtorUuid\":\"ca63d6c9-4578-4fcd-91cf-c1ff40402f2a\"}" "https://www.factorsnetwork.com/api/users/e6aaa036-2121-d11d-dd33-869ffac113be"
						

Response

{
  "user" : {
    "id" : "e6aaa036-2121-d11d-dd33-869ffac113be",
    "firstName" : "fname",
    "lastName" : "lname",
    "email" : "test@factorsnetwork.com",
    "userName" : "test@factorsnetwork.com",
    "debtor" : "ca63d6c9-4578-4fcd-91cf-c1ff40402f2a"
  }
}

Note: Responses will not be pretty printed when using the API, but have been formatted here for documentation purposes.