You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zoo-api/paths/qoc_careprogram_{careprogra...

56 lines
1.7 KiB
YAML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

put:
tags:
- Quality of Care
summary: Favourite, unfavourite, or clear fav status for a given CareProgram
parameters:
- name: careprogramKey
in: path
description: key of care program for which the fav status needs to be changed
required: true
schema:
type: string
- $ref: '../zoo-api.yaml#/components/parameters/Authorization'
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: string
description: |-
One of:
* `T` favourited (show it)
* `F` - unfavourited (do not show it)
* `X` - No favourite status (show it if this entity has this program in its default set, otherwise don't).
example: T
enum:
- T
- F
- X
responses:
'200':
description: Fav status is updated
content:
application/json:
schema:
type: object
properties:
key:
description: |-
The care program key as provided in `/qoc/careprogram`'s `key` property of a careprogram.
type: string
example: ZEL-dm2
value:
description: The current fav status of this careprogram
type: string
example: T
enum:
- T
- F
- X
defaultShow:
description: Whether this care program should be default-shown or not.
type: boolean
'401':
$ref: '../zoo-api.yaml/#/components/responses/NoAuth'
'403':
$ref: '../zoo-api.yaml/#/components/responses/NoAccess'