How to Assign Team via API POST

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • redgular
    Member
    • Feb 2016
    • 36

    How to Assign Team via API POST

    Hi
    How do I assign Team to a Lead via API POST

    Ive tried:

    "teams":"MyTeam"
    "teamsIds":"id######"

    This is not working for me.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hi

    Set this data as a lead field

    Like

    $leadData = [
    "firstName" => "Peter",
    "lastName" => "Peterson",
    "teamsIds" => ["the_id_of_first_team", "the_id_of_second_team"]
    ];
    You can set teamsNames as well, but it is not necessary.

    Comment

    • redgular
      Member
      • Feb 2016
      • 36

      #3
      Thank you. Very helpful.

      Comment

      Working...