Continuing the discussion from Introducing People Custom Field! :
Per the attached discussion, there appears to be a lack of documentation on updating a task’s people custom field value.
I have no problem getting a 200 response when providing an object value for a people-type custom field’s GID, yet the people-type field remains blank in the task after the supposedly successful update.
My attempts provided below:
POST /tasks
{
"data": {
"assignee": "1201051797275398",
"assignee_section": "1201684018234523",
"completed": false,
"custom_fields": {
"1202887864833071": {"gid": ["1201051797275398"]},
"1201862489770005": "https://bit.ly/3A7YuV0",
"1201702570970079": ""}
}
}
also tried:
POST /tasks
{
"data": {
"assignee": "1201051797275398",
"assignee_section": "1201684018234523",
"completed": false,
"custom_fields": {
"1202887864833071": {"people_value": ["1201051797275398"]},
"1201862489770005": "https://bit.ly/3A7YuV0",
"1201702570970079": ""}
}
}
finally tried:
POST /tasks
{
"data": {
"assignee": "1201051797275398",
"assignee_section": "1201684018234523",
"completed": false,
"custom_fields": {
"1202887864833071": {"people_value": {"gid": ["1201051797275398"]}},
"1201862489770005": "https://bit.ly/3A7YuV0",
"1201702570970079": ""}
}
}
All attempts received a 200 response but resulted in no change to the People field (field gid = 1202887864833071 in this case).
Please let me know when there is satisfactory documentation on updating a task’s people field value. Alternatively, if someone has managed to successfully update a task’s people field value via the API, please share your secret sauce!!
Thanks