Canary Speech

PutResponse

PUT - /org/assessment/:assessmentId/put-response
Required Permissions:
  • scope:api

Description

Create a response

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
assessmentIdstring
The UUID of the assessment

Body Parameters

NameTypeDescription
* dateRecordeddate-time
The ISO-8601 timestamp of when the response was recorded.
* questionIdstring
The ID of the question as defined in the survey JSON that corresponds to this response.
* responseTypestring
The type of the question as defined in the survey JSON.
* responseDataobject
The data of the response. If the responseType is "recordedResponse", this object will have "filename" and "duration" fields. Otherwise, it will have a "value" field.
extraDataobject
Any additional optional metadata of the response.

Successful Response

A successful response

Field NameTypeDescription
uuiduuid
The ID of the uploaded response.

Code Example