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 ActivityEvent
s generated from that Activity
by Participant
s.
Path Parameters |
---|
id string — REQUIREDThe 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 |
---|
Schema — OPTIONAL |
---|
data object — OPTIONAL |
|
Schema — OPTIONAL |
---|
error string — OPTIONAL |
|