Monday API v2 - update column person

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\"}]},

1 Like

Thanks, Johnathon that worked.

@dipro-monday.com 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.

1 Like