public function updateCollection($collectionId, $title, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($title)) {
            throw new InvalidTypeException('Title', 'string', gettype($title));
        }

        $params = [
            'title' => $title,
        ];

        return $this->put(sprintf('collections/%s', $collectionId), $params, $accessToken);
    }
public function updateCollection($collectionId, $title, $accessToken)
    {
        if (!$this->apiVersionIsGreaterThanV3()) {
            throw new EndpointNotSupportedByApiVersionException();
        }

        if (!is_string($title)) {
            throw new InvalidTypeException('Title', 'string', gettype($title));
        }

        $params = [
            'title' => $title,
        ];

        return $this->put(sprintf('collections/%s', $collectionId), $params, $accessToken);
    }
public function updateCollection ( $ collectionId , $ title , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ title ) ) { throw new InvalidTypeException ( 'Title' , 'string' , gettype ( $ title ) ) ; } $ params = [ 'title' => $ title , ] ; return $ this -> put ( sprintf ( 'collections/%s' , $ collectionId ) , $ params , $ accessToken ) ; }
Update a collection

@param string $collectionId
@param string $title
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@throws InvalidTypeException
@return null
Update a collection