@@ -239,7 +239,7 @@ def _prepare_video_processing_parameters(
239239 return transformed
240240
241241
242- class AssetsNamespace (DomainNamespace ):
242+ class AssetsNamespace (DomainNamespace ): # pylint: disable=too-many-public-methods
243243 """Assets domain namespace providing asset-related operations.
244244
245245 This namespace provides access to all asset-related functionality
@@ -264,6 +264,8 @@ class AssetsNamespace(DomainNamespace):
264264 - move_to_next_step(): Move assets to the next workflow step
265265 - assign(): Assign assets to labelers
266266 - update_priority(): Update asset priorities
267+ - skip(): Skip an asset
268+ - unskip(): Unskip an asset
267269
268270 Examples:
269271 >>> kili = Kili()
@@ -1808,6 +1810,64 @@ def set_metadata(
18081810 external_ids = external_ids ,
18091811 )
18101812
1813+ @typechecked
1814+ def skip (
1815+ self ,
1816+ * ,
1817+ asset_id : str ,
1818+ project_id : str ,
1819+ reason : str ,
1820+ ) -> str :
1821+ """Skip an asset.
1822+
1823+ Args:
1824+ asset_id: ID of the asset you want to skip.
1825+ project_id: The project ID.
1826+ reason: The reason why you skip an asset.
1827+
1828+ Returns:
1829+ The asset ID of the asset skipped. An error message if mutation failed.
1830+
1831+ Examples:
1832+ >>> kili.assets.skip(
1833+ project_id="ckg22d81r0jrg0885unmuswj8",
1834+ asset_id="ckg22d81s0jrh0885pdxfd03n",
1835+ reason="Test"
1836+ )
1837+ """
1838+ return self ._client .skip_or_unskip (
1839+ action = "skip" ,
1840+ asset_id = asset_id ,
1841+ project_id = project_id ,
1842+ reason = reason ,
1843+ )
1844+
1845+ @typechecked
1846+ def unskip (
1847+ self ,
1848+ * ,
1849+ asset_id : str ,
1850+ project_id : str ,
1851+ ) -> str :
1852+ """Unskip an asset.
1853+
1854+ Args:
1855+ asset_id: ID of the asset you want to unskip.
1856+ project_id: The project ID.
1857+
1858+ Returns:
1859+ The asset ID of the asset unskipped. An error message if mutation failed.
1860+
1861+ Examples:
1862+ >>> kili.assets.unskip(
1863+ asset_id="ckg22d81s0jrh0885pdxfd03n"
1864+ project_id="ckg22d81r0jrg0885unmuswj8"
1865+ )
1866+ """
1867+ return self ._client .skip_or_unskip (
1868+ action = "unskip" , asset_id = asset_id , project_id = project_id
1869+ )
1870+
18111871 @overload
18121872 def invalidate (
18131873 self ,
0 commit comments