SubmitSurvey
POST/v1/rides/submit-survey¶ Description
Submits a response to a survey. Only transport-provider-rating submissions are currently persisted; the response body carries no data regardless of survey type.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| order_id | string | The id of the Order | Y |
| job_id | string | The id of the Job | Y |
| requested_by | ParticipantEntity | The participant who is requesting to submit the survey response | Y |
| survey_response | SurveyResponse | The survey response from GetSurveyResponse | Y |
¶ Response Parameters
(No parameters / Empty response)
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 400 | ERROR_CODE_VALIDATION_FAILED | Survey type is not allowed |
| 404 | ERROR_CODE_PARTICIPANT_NOT_FOUND | One or more participants not found [value: “ |
| 403 | ERROR_CODE_INVALID_ENTITY_ACCESS | One or more of the participants are not accessible in the current environment, or the user is not authorized to access the job |
| 404 | ERROR_CODE_ORDER_NOT_FOUND | Given order id does not exist |
| 412 | ERROR_CODE_INVALID_JOB_STATE | Job is not in a state that allows a rating submission |