Trimite link pe email
Trimite linkul de partajare catre unul sau mai multe emailuri.
Endpoint
http
POST /api/v1/shares/{token}/notificationsParametri
Parametri URL
| Parametru | Tip | Obligatoriu | Descriere |
|---|---|---|---|
token | string | yes | - |
Parametri body
| Parametru | Tip | Obligatoriu | Descriere |
|---|---|---|---|
emails | array | yes | Lista de adrese de email valide. |
Exemplu de cerere
sh
curl --location --request POST 'https://files.ro/api/v1/shares/{token}/notifications' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
"emails": [
"jane@doe.com"
]
}'Răspuns
json
{
"type": "success",
"message": "The share link was shared via email successfully."
}json
{
"type": "error",
"message": "You are not authorized"
}json
{
"type": "error",
"message": "Access Denied"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}