Patch a user
Changed onUpdate ('patch') one or more fields in the user details. This only adds or updates the values for the properties that you include in the call; all other properties, and data already saved for them, are ignored
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of the user assigned by the AppDirect platform
Request body
Example request
{
"firstName": "Jane",
"lastName": "Lee",
"currency": "USD",
"externalId": "b34974b2-f5d6-4326-9859-5247dc42ee60",
"locale": "en_US",
"ldapId": "1",
"boostUser": {
"apsUid": "murnu8w"
},
"roles": [
"ROLE_CORPORATE_ADMIN"
],
"idpUuid": "c412543-1233-6547-9809-0647dc42ee51"
}Response
Success
Example response
{
"uuid": "8d237de5-9710-4d55-a5cc-3e8dc918c216",
"email": "jude.doe@company8578572384.com",
"username": "jude.doe",
"firstName": "Jude",
"lastName": "Doe",
"picture": "http://localhost:8080/profilePics/img2147417701652580695.png?184b58e358f087154d94329f9000b28a",
"activated": true,
"allowLogin": true,
"currency": "USD",
"creationDate": 1398896238000,
"lastSuccessfulLogin": 1543259363000,
"openId": "http://localhost:8080/openid/id/2f93cb24-f7b9-433f-875e-bb0dd9b0f1c1",
"externalId": "b34974b2-f5d6-4326-9859-5247dc42ee60",
"idpUuid": "1d37bace-f4cf-11e6-af80-22000a9513f7",
"locale": "en_US",
"customAttributes": [
{
"name": "C5125859",
"attributeType": "TEXT",
"label": "Commission_Payout_ID",
"hint": "commission_hint",
"value": "value"
}
],
"ldapId": "1",
"boostUser": {
"apsUid": "murnu8w"
},
"roles": [
"ROLE_USER"
],
"metadata": {
"apsUid": null
},
"links": [
{
"rel": "self",
"href": "http://appdirect/api/account/v2/users/8d237de5-9710-4d55-a5cc-3e8dc918c216"
},
{
"rel": "memberships",
"href": "http://appdirect/api/account/v2/users/8d237de5-9710-4d55-a5cc-3e8dc918c216/memberships"
}
]
}Changes
- breaking
the request's body type changed from no type to
object - breaking
removed the media type
*/*for the response with the status - breaking
removed the media type
*/*for the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- breaking