Recent searches
No recent searches
Automatically set checkbox to True on end user creation
Posted Dec 02, 2023
I assume the event webhook for User Created could be used for this, but I'm not sure how to go about it. What is the User Created webhook supposed to be used for? Can I use it to automatically set a checkbox (or add a tag) on said user, or is there a better way to do that?
(I'm a beginner with APIs, but I've already successfully been able to update ticket subject lines through triggered webhooks.)
Here's where I'm at:
(where "text-consent-needed" is a checkbox on the profile)
I have a User Created event webhook for account created at this end point: https://subdomain.zendesk.com/api/v2/users/{{user_id}}.json
Subdomain removed by the Zendesk Community Team to avoid private data being shared.
I think my problem is that I'm using the user event, but I can't figure out how to trigger a webhook without it.
0
1 comment
Paolo
I just want to confirm, that the main goal here is just to set the custom field checkbox to "true" upon end-user creation. Right? If that is the case, you can simply use the Create User API endpoint and you don't need to associate it with an event webhook. You just need to set the
user_fields
property in your payload and declare thefield key
of your custom checkbox field. More information here. You may refer to the sample below as well.Best,
Paolo | Technical Support Engineer | Zendesk
0