Update a Person
URI:Â https://api.cloudcard.us/person/{id}
Example URI:Â https://api.cloudcard.us/person/123Â
Example URI:Â https://api.cloudcard.us/person/jon.doe@foo.edu?findBy=email
Example URI: https://api.cloudcard.us/person/A1234567?findBy=identifier
Optional URL Parameters:Â
findBy=[id|email|identifier]
(default id)updateRoles=[true|false]
(default true)
IfÂupdateRoles
istrue
 or absent, any roles not explicitly granted will be removed
HTTP Method:Â PUT
Required Headers:Â X-Auth-Token (see:Â Authentication)
Optional URL Parameters:Â none
Example HTTP Request Body - All fields are optional
{
"email": "jon.doe@foo.edu",
"identifier":"ABC123",
"Some Custom Field Name":"Some Custom Field Value",
"Another Custom Field Name":"Another Custom Field Value",
"ROLE_DIRECTOR":false,
"ROLE_OFFICE":true,
"cardholderGroupName":"Online Students",
"additionalPhotoRequired":true ,
"enabled":true
}
Response
202 ACCEPTED