Mutations
Create a session for a given stakeholder to complete activities via the Awell Hosted Activity page
This page documents the startHostedActivitySession
mutation but we recommend reading "What are Awell Hosted Pages" page first and the full guide on how to set-up the Hosted Activity integration.
- graphql
01mutation StartHostedActivitySession($input: StartHostedActivitySessionInput!) {02 startHostedActivitySession(input: $input) {03 session_id04 session_url05 }06}
pathway_id
specifies the care flow/pathway instance where there are activities to complete for.
stakeholder_id
specifies for what stakeholder there are activities to compelete for.
01{02 "input": {03 "pathway_id": "{{PATHWAY_ID}}",04 "stakeholder_id": "{{STAKEHOLDER_ID}}",05 "success_url": "https://yourdomain.com/success.html",06 "cancel_url": "https://yourdomain.com/cancel.html"07 }08}
The success_url
and cancel_url
specify where the stakeholder should be redirected to when the care flow/pathway session is completed or canceled/interrupted respectively. If success_url
and cancel_url
are not specified, then static success and cancel pages will be shown in the Hosted Pages application.
01{02 "input": {03 "pathway_id": "{{PATHWAY_ID}}",04 "stakeholder_id": "{{STAKEHOLDER_ID}}",05 "success_url": "https://yourdomain.com/success.html",06 "cancel_url": "https://yourdomain.com/cancel.html",07 "language": "en"08 }09}
Languages should be passed as an ISO 639-1 shortcode.If no language is passed, it defaults to English.
Awell Hosted Pages is currently available in the following languages:
A session expires after 60 minutes but the timer is reset after every completion of an activity. A session also expires when there are no pending activities left in a pathway.