Adds a response to a performer prompt.

PATCH /cs-close-api/tasks/{id}/performer-prompts/{questionNumber}

Adds a response to a performer prompt. Response is checked to be the same as the performer prompt type.

Read More about Performer Prompts

Path parameters

  • id integer Required

    The identifier for the task which is set as a taskId. No need to set seprate taksId in the Request Body.

  • questionNumber integer(int32) Required

    The identifier for the question from the given taskId which is set as a questionNumber. No need to set separate questionNumber in the Request Body.

application/json

Body Required

  • response string Required

    The response for the close task action plan question which we are updating

    Minimum length is 0, maximum length is 2048.

  • taskId integer

    The ID of the close task action plan.

  • questionNumber integer(int32)

    The question for the close task action plan which we are updating

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • response string Required

      The response for the close task action plan question which we are updating

      Minimum length is 0, maximum length is 2048.

    • taskId integer

      The ID of the close task action plan.

    • questionNumber integer(int32)

      The question for the close task action plan which we are updating

PATCH /cs-close-api/tasks/{id}/performer-prompts/{questionNumber}
curl \
 --request PATCH 'http://close-service:8082/cs-close-api/tasks/{id}/performer-prompts/{questionNumber}' \
 --header "Content-Type: application/json" \
 --data '{"response":"string","taskId":42,"questionNumber":42}'
Request examples
{
  "response": "string",
  "taskId": 42,
  "questionNumber": 42
}
Response examples (200)
{
  "response": "string",
  "taskId": 42,
  "questionNumber": 42
}