Enable or reconfigure self-signup
PUT
Enables Kahoot-style self-signup for the study, or reconfigures it if already enabled or ended before. The study must be live and the given participant role must exist on its protocol. A short code is generated once, on first enable, and is never regenerated by later calls - it survives an enable -> end -> re-enable cycle. maxParticipants is a lifetime cap and may be raised or lowered on a later call.
bearerheader
AuthorizationBearer <token>Provide the username and password of the user
study-id*stringapplication/json- body
maxParticipants?integerFormat
int32participantRoleName*stringLength
1 <= lengthclientId*stringLength
1 <= lengthredirectUri*stringLength
1 <= lengthsubdomain?string|nullexpirationSeconds?integerFormat
int64Range
value <= 2592000OK
*/*- response
shortCode?stringenabled?booleanparticipantRoleName?stringmaxParticipants?integerFormat
int32currentParticipantCount?integerFormat
int32curl -X PUT 'https://dev.carp.dk/api/studies/string/self-signup' \ -H 'Content-Type: application/json' \ -d '{ "participantRoleName": "string", "clientId": "string", "redirectUri": "string"}'Example response
{ "shortCode": "string", "enabled": true, "participantRoleName": "string", "maxParticipants": 0, "currentParticipantCount": 0}