Skip to main content

Monday API v2 - update column person

  • March 25, 2020
  • 5 replies
  • 4259 views

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

This topic has been closed for replies.

5 replies

grt-s
  • Participating Frequently
  • March 26, 2020

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.


  • New Participant
  • March 27, 2020

@rgusciora try this:

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

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


  • Author
  • New Participant
  • March 27, 2020

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.


dipro
Forum|alt.badge.img
  • Leader
  • August 3, 2020

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.


  • February 25, 2021

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