ATHENA PROD
Fetch treatment modalities
List available goal treatment modalities.
POSThttps://preview.ontross.com/api/integrations/athena-prod/fetch-treatment-modalities
Request Fields
input.org_id
integer
requiredPractice context, shown in the athenanet portal URL.
Example
25910input.department_id
integer
requiredDepartment the session opens, shown in the portal URL.
Example
1auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
treatment_modalities
array
Treatment modalities available for behavioral goals, with ids.
treatment_modalities[].id
string
Catalog entry identifier returned by the upstream service.
Example
"907"treatment_modalities[].name
string
Label of the catalog template, session type, or modality.
Example
"Practice deep breathing techniques"Code
curl --request POST \
--url https://preview.ontross.com/api/integrations/athena-prod/fetch-treatment-modalities \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"org_id":25910,"department_id":1},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"org_id": 25910,
"department_id": 1
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"treatment_modalities": [
{
"id": "907",
"name": "Practice deep breathing techniques"
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}