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

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

        $params = [
            'item_id' => $itemId,
        ];

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

        if (!is_string($itemId)) {
            throw new InvalidTypeException('Item ID', 'string', gettype($itemId));
        }

        $params = [
            'item_id' => $itemId,
        ];

        return $this->put(sprintf('collections/%s/thumbnail', $collectionId), $params, $accessToken);
    }
public function createCollectionThumbnail ( $ collectionId , $ itemId , $ accessToken ) { if ( ! $ this -> apiVersionIsGreaterThanV3 ( ) ) { throw new EndpointNotSupportedByApiVersionException ( ) ; } if ( ! is_string ( $ itemId ) ) { throw new InvalidTypeException ( 'Item ID' , 'string' , gettype ( $ itemId ) ) ; } $ params = [ 'item_id' => $ itemId , ] ; return $ this -> put ( sprintf ( 'collections/%s/thumbnail' , $ collectionId ) , $ params , $ accessToken ) ; }
Create a collection thumbnail

@param string $collectionId
@param string $itemId
@param string $accessToken
@throws EndpointNotSupportedByApiVersionException
@return null
Create a collection thumbnail