Edit repeat group via API

I am using the api to edit some values with

URL = 'https://[kpi-url]/api/v2/assets/{asset_uid}/data/bulk/'
TOKEN = 'value_token_xxxxx'
PARAMS = {
    'format': 'json',
    'content-type': 'application/json'
}
HEADERS = {
    'Authorization': f'Token {TOKEN}'
}

{
"payload": 
{
    "submission_ids": [ xxxxxxx], 
    "data": {
        "group_1/name_1":"Value 1",
        "group_1/name_2":"Value_2"
        }
}
}

it’s works fine for this type of questions, but it’s possible when the questions are a “repeat group”.
I try using an array but doesn’t works, something like

"data": {
        "group_question":[
                      {
                       "group_question/name_1":"Value 1",
                       "group_question/name_2":"Value_2"
                      },
                      {
                       "group_question/name_1":"Value 3",
                       "group_question/name_2":"Value_4"
                      }
                      ]        
        }

Thanks

Hi @hoffmat, unfortunately editing repeat groups through the API is not yet supported :+1:

1 Like