Projects

Get current project features

  • Sandbox: available
  • Staging: available
  • Production: unknown
GET
/v1/projects/me/features

Returns the Medplum features (Project.features) enabled on your current project, such as bots or cron.

Auth: bearer token. The caller must be a Practitioner, a project admin, or hold the System Owner access policy. Scope: the caller's project (from the token).

Behaviour

  • Values are returned as stored, without checking them against the list PATCH accepts. An empty array means no features are enabled.

Example

curl -X GET 'https://api.sandbox.ovok.com/v1/projects/me/features' \  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'

Authorization

bearer
headerAuthorizationBearer <JWT>

Response Body

The features enabled on the caller's current project.

application/json
  1. response
features*array<string>
Example Request
curl -X GET 'https://api.sandbox.ovok.com/v1/projects/me/features'
Example Response
{  "features": [    "string"  ]}

Remove a project member DELETE

Removes a Practitioner from your current project. **Auth:** bearer token of a project admin (`ProjectMembership.admin`). **Scope:** the caller's project (from the token). A membership of another project answers 404. ## Behaviour - Deletes the membership and its Practitioner profile. The User is deleted only when it has no other membership in any project. - All or nothing: if one delete fails, the others are undone and the request fails. - Removing the last admin of the project is refused. - The response is `{ "success": true }`. ## Example ```bash curl -X DELETE 'https://api.sandbox.ovok.com/v1/projects/me/members/c3499c27-2973-0a7f-807e-fb8676a92dcb' \ -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk' ```

Update current project features PATCH

Replaces the Medplum features (`Project.features`) of your current project with the list you send. **Auth:** bearer token of a project admin. The caller must also be a Practitioner, an admin or hold the System Owner access policy. **Scope:** the caller's project (from the token). ## Behaviour - The list replaces the stored one; it is not merged. Send every feature you want enabled. Sending the same list twice has the same result. - Each value must be one of the FHIR `Project.features` codes. - The write only succeeds if the project did not change since the server read it; otherwise it answers 409. ## Example ```bash curl -X PATCH 'https://api.sandbox.ovok.com/v1/projects/me/features' \ -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk' \ -H 'Content-Type: application/json' \ -d '{ "features": ["bots", "cron", "websocket-subscriptions"] }' ```