Skip to main content

Hi


I’m trying to send a mutation to create a new item on the board and populate all columns. Everything seems to work except for the “person” column. No errors in the response.


request


mutation {
create_item (board_id: 505100819, group_id: "topics", item_name: "test_name", column_values:"{\\"person\\":{\\"id\\":12307363},\\"status\\":{\\"label\\":\\"Done\\"},\\"date4\\":{\\"date\\":\\"2019-06-03\\"}}") {
id
}
}

response


 {
"data": {
"create_item": {
"id": "505328688"
}
},
"account_id": 5530601
}

I’m kind of lost why is this not working

You may find that your ‘person’ column is in fact now a ‘persons’ column. Thus you will need to use the slightly different syntax specified in the API doco for that column type. I had the same mistake.


@rgusciora try this:


\\"person\\":{\\"personsAndTeams\\":[{\\"id\\":12307363,\\"kind\\":\\"person\\"}]},


https://monday.com/developers/v2#column-values-section-people


Thanks, Johnathon that worked.


@dipro this feels like it should be clarified/added to the documentation. Right now Monday.com documentation has tow distinct item “owner” types person and personsAndTeams. In this case, the person contains personsAndTeams, it’s a combo of the previous two types, or maybe just add an example for this use case.


Hey folks! Just wanted to update you saying that we added some copy to our documentation explaining the difference between the “Person” and “People” column.



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.