Create a prescription request
POST
/prescription
const url = 'https://example.com/prescription';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"userId":"example","indicationSurvey":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/prescription \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "userId": "example", "indicationSurvey": {} }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
userId
required
string
indicationSurvey
object
key
additional properties
any
Examplegenerated
{ "userId": "example", "indicationSurvey": {}}Responses
Section titled “Responses”Prescription request created.
