Report a user event.
If the <externalId>@<connectionId>
user identifier syntax is used and the user doesn't exist, they will be imported.
By default, the event is processed asynchronously.
POST
/admin/v1/users/{userId}:eventReport a user event.
If the <externalId>@<connectionId>
user identifier syntax is used and the user doesn't exist, they will be imported.
By default, the event is processed asynchronously.
No response data.
curl https://api.userhub.com/admin/v1/users/auth0%7C123456789@conn_26yEiYymqy6ZmG:event \
-H "Authorization: Bearer $USERHUB_ADMIN_KEY" \
--json '{
"type": "SIGNIN"
}'
const res = await adminApi.users.reportEvent(
"auth0|123456789@conn_26yEiYymqy6ZmG",
{
type: "SIGNIN",
},
);
res, err := adminApi.Users().ReportEvent(
context.Background(),
"auth0|123456789@conn_26yEiYymqy6ZmG",
&adminapi.UserReportEventInput{
Type: "SIGNIN",
},
)
$res = $adminApi->users->reportEvent(
userId: 'auth0|123456789@conn_26yEiYymqy6ZmG',
type: 'SIGNIN',
);
res = admin_api.users.report_event(
user_id="auth0|123456789@conn_26yEiYymqy6ZmG",
type="SIGNIN",
)