Assigning an Item to a person using the API

Hi,

May you please assist, I have aboard where I am able to create Items using the API and python, I am now at a stage where I want to assign an Item to a user so that through permissions a user can only see Items assigned to them, How can I achieve that through the API?

hi @mxolisi

You can assign a person to an item by adding that userId to a person column. The below API call (with fake id’s) would do the job.

mutation {
  change_column_value(board_id: 123456789, item_id: 9876564321, column_id: "people", value: "{\"personsAndTeams\":[{\"id\":123456,\"kind\":\"person\"}]}") {
    id
  }
}
1 Like

Thank you So much Sir.

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