Asana::updateTag PHP Méthode

updateTag() public méthode

Modifies the fields of a tag provided in the request, then returns the full updated record.
public updateTag ( string $tagId, array $data ) : string
$tagId string
$data array An array containing fields to update, see Asana API if needed. Example: array("name" => "Test", "notes" => "It's a test tag");
Résultat string JSON or null
    public function updateTag($tagId, $data)
    {
        $data = array('data' => $data);
        $data = json_encode($data);
        return $this->askAsana($this->tagsUrl . '/' . $tagId, $data, ASANA_METHOD_PUT);
    }