Skip to content

API bulk update returns status 500 when try update repeater fields #6638

Open

Description

@emaia

Hello! I'm trying to update submitted entries that have repeater fields but this doesn't work and return status 500.

PATCH https://eu.kobotoolbox.org/api/v2/assets/{asset_uuid}/data/bulk/

{
  "payload": {
    "submission_ids": [
      1
    ],
    "data": {
      "info_gerais\/status": "01",
      "entrevista\/parte_03\/qd_moradores": [
        {
          "entrevista\/parte_03\/qd_moradores\/c4": "5",
          "entrevista\/parte_03\/qd_moradores\/position": "1",
          "entrevista\/parte_03\/qd_moradores\/sem_estudo": "0",
          "entrevista\/parte_03\/qd_moradores\/fora_escola": "0",
          "entrevista\/parte_03\/qd_moradores\/fora_creche": "0"
        },
       {
          "entrevista\/parte_03\/qd_moradores\/c4": "9",
          "entrevista\/parte_03\/qd_moradores\/position": "2",
          "entrevista\/parte_03\/qd_moradores\/sem_estudo": "0",
          "entrevista\/parte_03\/qd_moradores\/fora_escola": "0",
          "entrevista\/parte_03\/qd_moradores\/fora_creche": "1"
        }
      ]
    }
  }
}

Response:

{
	"error": "Server Error (500)"
}

Removing repeater fields from payload works as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions