Skip to main content
GET
/
user-health
/
{userId}
/
protocols
/
{protocolId}
/
sections
User Protocol Sections
curl --request GET \
  --url https://api.dontdie.com/user-health/{userId}/protocols/{protocolId}/sections \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
[
  {
    "id": "1234567890",
    "name": "Protocol 1 section",
    "description": "Protocol 1 section description",
    "reason": "Protocol 1 section reason",
    "sortOrder": 1,
    "status": "Published",
    "startedOn": "2021-01-01",
    "endedOn": "2021-01-01"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

x-dd-client-id
string
header
required

Your API client ID for the request

Path Parameters

userId
string
required

The ID of the user to get the sections for

protocolId
string
required

The ID of the protocol to get the sections for

Response

200 - application/json

OK

id
string

The ID of the protocol section

Example:

"1234567890"

name
string

The name of the protocol section

Example:

"Protocol 1 section"

description
string

The description of the protocol section

Example:

"Protocol 1 section description"

reason
string

The reason of the protocol section

Example:

"Protocol 1 section reason"

sortOrder
integer

The sort order of the protocol section

Example:

1

status
enum<string>

The status of the protocol section

Available options:
Published,
Draft
Example:

"Published"

startedOn
string

The date the protocol section was started

Example:

"2021-01-01"

endedOn
string

The date the protocol section was ended

Example:

"2021-01-01"