POST
/cloud/partner/v5/patients/{patientUuid}/questionnaires/push
Envoyer un questionnaire
Déclenche l'envoi d'un questionnaire à un patient par SMS ou email, depuis votre interface.
Paramètres du corps
| Champ | Type | Requis | Description |
|---|---|---|---|
questionnaireUuid | string | Oui | UUID du questionnaire (protocole de l'espace de confiance) |
deliveryChannel | enum | Oui | SMS · EMAIL · BOTH |
scheduledAt | datetime | Non | ISO 8601. Envoi immédiat si absent. |
Retourne
409 Conflict si le questionnaire est déjà PENDING ou COMPLETED pour ce patient.
Exemple
curl
Envoi immédiat par SMS
curl -X POST https://secure.medicapp.ids.host/cloud/partner/v5/patients/{patientUuid}/questionnaires/push \ -H "Authorization: Bearer sk_test_VOTRE_CLE" \ -H "Content-Type: application/json" \ -d '{ "questionnaireUuid": "qst_xxxxxxxxxxxx", "deliveryChannel": "SMS" }'
curl
Envoi planifié
curl -X POST https://secure.medicapp.ids.host/cloud/partner/v5/patients/{patientUuid}/questionnaires/push \ -H "Authorization: Bearer sk_test_VOTRE_CLE" \ -H "Content-Type: application/json" \ -d '{ "questionnaireUuid": "qst_xxxxxxxxxxxx", "deliveryChannel": "BOTH", "scheduledAt": "2026-05-10T08:00:00Z" }'
json201 Created
{
"pushUuid": "push_xxxxxxxxxxxx",
"status": "SCHEDULED",
"scheduledAt": "2026-05-10T08:00:00Z",
"patientUuid": "pat_xxxxxxxxxxx",
"questionnaireUuid": "qst_xxxxxxxxxxxx"
}
Try it