Surveys
Update Surveys Response
Updates a user's survey response for the provided dispatch ID.
AuthorizationBearer <token>
All the DevRev APIs require a token to authenticate the user. Provide Authorization: Bearer <TOKEN> as a header to every API request.
How do I find my token?
In: header
dispatch_idstring
The unique ID associated with the dispatched survey.
Format
idresponse?object
Survey response submitted for the object.
Empty Object
response_channel?integer
The source channel ordinal which recorded the survey response.
Format
int64response_score?integer
The response score for the survey. Only applicable for CSAT and NPS.
Format
int32Range
1 <= value <= 10stage?integer
The stage ordinal of the survey response object.
Format
int64Response Body
curl -X POST "https://api.devrev.ai/surveys.responses.update" \  -H "Content-Type: application/json" \  -d '{    "dispatch_id": "string"  }'{}{
  "detail": "string",
  "message": "string",
  "type": "artifact_already_attached_to_a_parent",
  "existing_parent": "string",
  "is_same": true
}{
  "detail": "string",
  "message": "string",
  "type": "unauthenticated"
}{
  "detail": "string",
  "message": "string",
  "type": "forbidden"
}{
  "detail": "string",
  "message": "string",
  "type": "too_many_requests",
  "retry_after": 0
}{
  "detail": "string",
  "message": "string",
  "type": "internal_error",
  "reference_id": "string"
}{
  "detail": "string",
  "message": "string",
  "type": "service_unavailable"
}