Authorizations
Path Parameters
ID of the user to update.
Body
The user object.
The user's email address. Required if subscribeToEmails is true.
"user@example.com"
The name to refer to the user by in emails.
"User"
The user's device tokens, used for push notifications.
The device token.
["token1", "token2"]
Whether the user should receive Trophy-powered emails. If false, Trophy will not store the user's email address.
true
User attributes as key-value pairs. Keys must match existing user attributes set up in the Trophy dashboard.
{
"department": "engineering",
"role": "developer"
}
The user's timezone (used for email scheduling).
"Europe/London"
Response
Updated user
A user of your application. An object with editable user fields.
Whether the user is in the control group, meaning they do not receive emails or other communications from Trophy.
false
The date and time the user was created, in ISO 8601 format.
"2021-01-01T00:00:00Z"
The date and time the user was last updated, in ISO 8601 format.
"2021-01-01T00:00:00Z"
The user's email address. Required if subscribeToEmails is true.
"user@example.com"
The name to refer to the user by in emails.
"User"
The user's device tokens, used for push notifications.
The device token.
["token1", "token2"]
Whether the user should receive Trophy-powered emails. If false, Trophy will not store the user's email address.
true
User attributes as key-value pairs. Keys must match existing user attributes set up in the Trophy dashboard.
{
"department": "engineering",
"role": "developer"
}
The ID of the user in your database. Must be a string.
"user-id"
The user's timezone (used for email scheduling).
"Europe/London"