Re-Send Confirmation To User
Endpoint que permite nuevamente enviar el correo de confirmación de creación de cuenta a un usuario, dado por el identificador user_id, el cual se ingresa como una variable de ruta.
Endpoint
Headers
Key | Value | Description |
---|---|---|
Authorization | Bearer {{access_token}} | access_token obtained in Atenea |
Method: POST
URL: https://atenea.trust.lat/users/:user_id/resend_confirmation
Path Variables:
Key | Value Example | Description |
---|---|---|
user_id | 9999 | Identificador único del usuario dentro del servicio. Sinónimo de id. Obligatorio. |
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Code Examples
- Curl
- JavaScript
- Python
curl --location --request POST 'https://atenea.trust.lat/users/9999/resend_confirmation' \
--header 'Authorization: Bearer *********' \
--data-raw ''
import requests
url = "https://atenea.trust.lat/users/9999/resend_confirmation"
payload={}
headers = {
'Authorization': 'Bearer *********'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
var axios = require('axios');
var data = '';
var config = {
method: 'post',
url: 'https://atenea.trust.lat/users/9999/resend_confirmation',
headers: {
'Authorization': 'Bearer *********'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP Code: 200 OK
Confirmation sended successfully
{
"status": true,
"message": "ok",
"try_send_email": true
}
User already confirmed
{
"status": false,
"message": "User already confirmed.",
"try_send_email": false
}
HTTP Code: 403 Forbidden
Unauthorized user for the access token scopes
{
"status": false,
"message": "Unauthorized"
}
HTTP Code: 404 Not Found
User not present in service
{
"status": false,
"message": "User not found.",
"try_send_email": false
}