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);
    }