Skip to main content

Assigning an Item to a person using the API

  • March 29, 2022
  • 3 replies
  • 2047 views

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?

This topic has been closed for replies.

3 replies

basdebruin
  • Community Expert
  • March 29, 2022

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
  }
}

  • Author
  • Participating Frequently
  • March 29, 2022

Thank you So much Sir.


  • April 5, 2022

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