From the error it looks like the expected PUT body needs to be an array say {"contacts":[12,123]}. What you are giving is {"contacts":12} There are 2 options:
Put the integer in an array. ie. request.put("contacts",[contact])
since your delete request already handles multiple ids, why use dataprovider, simply send the array in one go in contacts.
发布评论
评论(1)
从错误看来,预期的put主体需要是一个数组,说
{“ contacts”:[12,123]}
。您给出的是{“联系人”:12}
有2个选项:
From the error it looks like the expected PUT body needs to be an array say
{"contacts":[12,123]}
. What you are giving is{"contacts":12}
There are 2 options: