post
https://{customerDomain}.heyteam.com/eapi/users/upsert-and-enroll
Create or update a user from matching criteria, then enroll them in a program as a draft, in a single call.
The user is searched with the match_by criteria, combined in AND.
If exactly one user matches, it is updated from user.
If none matches, a new user is created from user, completed by some match_by criteria. If one of the emails sent in user is already taken, the call is rejected with a 422 that says why.
If several users match, the call is rejected with a 409 and nothing is written.
A draft enrollment is then created on program_identifier. If the user is already enrolled on that program, the existing enrollment is returned instead of a duplicate.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…