lib/TagsService.php
public function update($id, array $tag, array $options = array())
  {
    $attributes = array_intersect_key($tag, array_flip(self::$keysToPersist));

    list($code, $updatedTag) = $this->httpClient->put("/tags/{$id}", $attributes, $options);
    return $updatedTag;
  }
public function update($id, array $tag, array $options = array())
  {
    $attributes = array_intersect_key($tag, array_flip(self::$keysToPersist));

    list($code, $updatedTag) = $this->httpClient->put("/tags/{$id}", $attributes, $options);
    return $updatedTag;
  }
public function update ( $ id , array $ tag , array $ options = array ( ) ) { $ attributes = array_intersect_key ( $ tag , array_flip ( self :: $ keysToPersist ) ) ; list ( $ code , $ updatedTag ) = $ this -> httpClient -> put ( "/tags/{$id}" , $ attributes , $ options ) ; return $ updatedTag ; }
Update a tag

put '/tags/{id}'

Updates a tag's information
If the specified tag does not exist, this query will return an error
**Notice** if you want to update a tag, you **must** make sure the tag's name is unique within the scope of the specified resource

@param integer $id Unique identifier of a Tag
@param array $tag This array's attributes describe the object to be updated.
@param array $options Additional request's options.

@return array The resulting object representing updated resource.
Update a tag