println "hello world!"
This Example Project demonstrates how to consume this API endpoint within a C# project.
URI: https://app.cloudcardtools.com/api/people/{id}
HTTP Method: PUT
Required Headers: X-Auth-Token (see: Authentication)
Optional URL Parameters:
allowCreate=[true|false]
default isfalse
- If
true
a new person will be created if a person is not found for the specified URI. - If
false
an error,404 Not Found
, is returned if a person is not found for the specified URI.
- If
getLoginLink=[true|false]
default isfalse
If
false
, just the person is returned as the root element of the JSON objectIf
true
, the person is return alongside his login link as theuser
andaccess_link
elements of the JSON response object. A person's login link contains a unique, secure token that allows them to log into the CloudCard without entering their username or password.
Example HTTP Request Body - All fields are optional
{ "email": "jon.doe@foo.edu", "identifier":"ABC123", "Some Custom Field":"Some Custom Field Value", "Another Custom Field":"Another Custom Field Value" }
Example: Update User to Get Login Link as a Cardholder
This request will revoke office user and director roles if the user posses them.
PUT https://app.cloudcardtools.com/api/people/bacon@test.edu?getLoginLink=true {} //the request body should be empty
Example: Update User to Get Login Link as an Office User
This request will grant the office user role if the user did not already posses it.
PUT https://app.cloudcardtools.com/api/people/bacon@test.edu?getLoginLink=true { "ROLE_OFFICE": true }