Survey data

Bulk accept NLP results

Accepts transcription or translation results for multiple submissions in a single request. This is the bulk counterpart of the per-submission acceptance flow: instead of visiting each submission individually, users can select multiple submissions and approve all of them at once.

The operation field declares the operation to perform. Currently only "accept" is supported.

Transcription example

{
    "submission_uids": ["<uuid-1>", "<uuid-2>"],
    "question_xpath": "group_name/audio_question",
    "action_id": "automatic_google_transcription",
    "operation": "accept"
}

Translation example

For translation actions the language field is required:

{
    "submission_uids": ["<uuid-1>", "<uuid-2>"],
    "question_xpath": "group_name/audio_question",
    "action_id": "automatic_google_translation",
    "language": "fr",
    "operation": "accept"
}

Response

Returns the number of submission records that were successfully accepted. Submissions without a completed NLP result for the given question/action are silently skipped and excluded from the count.

{
    "accepted_count": 472
}
post/api/v2/assets/{uid_asset}/data/supplements/bulk/

Request

  • The document declares no server URL.
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

uid_assetstring required

UID of the parent asset

Request body

submission_uidsstring[] required
question_xpathstring required
action_id'automatic_google_transcription' | 'automatic_google_translation' required
  • automatic_google_transcription - automatic_google_transcription
  • automatic_google_translation - automatic_google_translation
languagestring

Required for translation actions.

operation'accept' required
  • accept - accept

Response

accepted_countinteger required

Number of submission records that were accepted.

Changes