Update team

Update team

curl -X PUT "https://onfleet.com/api/v2/teams/FFqPs1KHayxorfA~~xIj0us4" \
       -u "cd3b3de84cc1ee040bf06512d233719c:" \
       -d '{"workers":["1LjhGUWdxFbvdsTAAXs0TFos","F8WPCqGmQYWpCkQ2c8zJTCpW","3joS0Jh19VpJZgSTxFOK9fTf"]}'
onfleet.teams.update(id="FFqPs1KHayxorfA~~xIj0us4", 
                     body={"workers":["1LjhGUWdxFbvdsTAAXs0TFos",
                                      "F8WPCqGmQYWpCkQ2c8zJTCpW",
                                      "3joS0Jh19VpJZgSTxFOK9fTf"]
                          })
onfleet.teams.update("FFqPs1KHayxorfA~~xIj0us4", 
                     {"workers":["1LjhGUWdxFbvdsTAAXs0TFos",
                                 "F8WPCqGmQYWpCkQ2c8zJTCpW",
                                 "3joS0Jh19VpJZgSTxFOK9fTf"]
                     });
$onfleet->teams->create("FFqPs1KHayxorfA~~xIj0us4",
                        ["name" => "Sunset",
                         "workers" => ["1LjhGUWdxFbvdsTAAXs0TFos",
                                       "F8WPCqGmQYWpCkQ2c8zJTCpW"],
                         "managers" => ["Mrq7aKqzPFKX22pmjdLx*ohM"],
                         "hub" => "tKxSfU7psqDQEBVn5e2VQ~*O"
                        ])
{
  "id": "FFqPs1KHayxorfA~~xIj0us4",
  "timeCreated": 1455156655000,
  "timeLastModified": 1455156656399,
  "name": "Sunset",
  "workers": [
    "1LjhGUWdxFbvdsTAAXs0TFos",
    "F8WPCqGmQYWpCkQ2c8zJTCpW",
    "3joS0Jh19VpJZgSTxFOK9fTf"
  ],
  "managers": [
    "Mrq7aKqzPFKX22pmjdLx*ohM"
  ],
  "hub": "tKxSfU7psqDQEBVn5e2VQ~*O"
}
{
  "code": "ResourceNotFound",
  "message": {
    "error": 1402,
    "message": "The requested resource does not exist.",
    "request": "517e4611-44f0-40de-a0f9-c306884de7e0"
  }
}
{
  "code": "InvalidContent",
  "message": {
    "error": 1000,
    "message": "The values of one or more parameters are invalid.",
    "cause": "Invalid managers or workers for team",
    "request": "9e2a8dd7-9513-4a5c-b7f7-994796b3615b"
  }
}

When attempting to update a team's information, ensure that the worker and manager resources exist within your organization. Otherwise, errors will be thrown as invalid managers or workers.