Appearance
Set User Home Target
Set the default home navigation target for the authenticated user. The home target determines where the user lands upon login. Only the user themselves can set their own home target (isMe).
Parameters
| name * are required parameters | data type | description |
|---|---|---|
userId* | string | The user's own unique identifier |
body.target* | string | The global access key of the target to set as home |
Return Value
json
{
"statusCode": 201,
"data": true,
"message": "Home target set successfully"
}Error Codes
400 Bad Request: Returned when the target is invalid.401 Unauthorized: Returned when the caller is not the authenticated user.
Examples
bash
curl -X POST "https://app.wombat.software/api/user/:userId/set-home-target" \
-H "Content-Type: application/json" \
-H "Authentication: Bearer ..." \
-d '{"target": "site:abc123"}'ENDPOINTS
post
/api/user/:userId/set-home-target