Create and get the Magic Link for a user
PUT/api/web/v1/users/:userid/magiclink
Create and get the Magic Link for the specified user. Caller requires the MAGICLINKS:ADD permission.
Request
Path Parameters
- application/json
Body
required
Automatically send the Magic Link if the user has a default email or one is specified that matches a configured email.
The email to send the Magic Link to if it exists.
Automatically redirect the user to an external URL after completing registration. The URL must match one of the allowed URLs.
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Successful
- application/json
- Schema
- Example (from schema)
Schema
Expiry date of the Magic Link.
The generated Magic Link. This value will only be returned if the administrator has the MAGICLINKCONTENTS:VIEW permission.
{
"expiryDate": "2023-01-01T12:12:12Z",
"url": "https://mycompany.com/#/?magicToken=1a2b3c4d5e6f7g8h9i"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Access denied
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Error Codes specific to cause of failure.
Additional Error Message describing the error.
Optional additional error information.
{
"errorCode": "invalid_user_response",
"errorMessage": "Application id cannot be null",
"parameters": [
{}
]
}