Canary Speech

PutSurvey

PUT - /org/project/:projectId/put-survey
Required Permissions:
  • scope:api

Description

Add a survey to a project

Headers

Header KeyDescriptionExample
Authorization
The Authorization header for this endpoint. The value must be the token from the /v3/auth/tokens/get endpoint and given using the Bearer pattern.
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdW...

Path Parameters

NameTypeDescription
projectIdstring
The UUID of the project

Body Parameters

NameTypeDescription
* namestring
The name of the survey.
* codestring
The short-form code for the survey.
* surveyPathstring
The path to the survey metadata file.
consentConfigobject
The configuration of the form with which to ask consent from the subject.
summarystring
The summary for the survey. May contain markdown for styling.

Successful Response

A successful response

Field NameTypeDescription
uuiduuid
The uuid of the survey.

Code Example