Updating Users
PUT: https://api.validic.com/v1/organizations/{organization_id}/users/:user_id.json
You may make a PUT request to modify the user if you need to update a user, such as changing the UID you initially set in during User Provisioning.
HTTP
PUT https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}.json
{
"user":{
"uid":":uid"
},
"access_token":"[[app:key]]"
}
The following values are found in the response payload.
Return Value | Type | Description |
---|---|---|
_id (Validic User ID) | String | Used to identify a user in Validic and used to deploy the Application Marketplace |
uid (Your Unique ID) | String | Used to identify a user in your system |
access_token (User Authentication Token) | String | Your user's unique access token which is used to deploy the Application Marketplace |
Samples
Request
curl --request PUT \
--url https://api.validic.com/v1/organizations/organization_id/users/:user_id.json \
--header 'Validic-Version: 2016-03-01' \
--header 'accept: application/json' \
--header 'content-type: application/json'
Response
{
"code": 200,
"message": "The user has been successfully updated",
"user": {
"_id": "55d39077507279SAMPLE0003",
"uid": "NCC-1701-A",
"profile": null
}
}