Skip to main content

Create a Credential for a Resource.

A Credential can be created to provide read-write access to the Resource as well as ALL children. For example, a Credential can be created for a Researcher to provide a user access to all Studies, Participants, Activities, etc. Credentials created on Researchers and Participants are logically consistent with an "admin" account and a "user" account, but Credentials can also be created for other Resource types, such as Sensors and Activities. A Credential for an Activity would yield the ability to read/write the properties of the Activity (like schedule or settings), but also the ability to create and list ActivityEvents generated from that Activity by Participants.

Path Parameters
id string — REQUIRED

The special case "me" parameter can also be used to implicitly refer to the Resource ID of the currently authenticated user (Credential).

Request Body — REQUIRED
object
Responses
200

Success

Schema — OPTIONAL
data object — OPTIONAL
default

Error

Schema — OPTIONAL
error string — OPTIONAL