File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ def info(self, id_type: str = DATASET_ITEM_ID_KEY) -> dict:
15
15
This endpoint provides information about specified slice.
16
16
17
17
:param
18
- slice_id: id of the slice
19
18
id_type: the type of IDs you want in response (either "reference_id" or "dataset_item_id")
20
19
to identify the DatasetItems
21
20
@@ -27,3 +26,26 @@ def info(self, id_type: str = DATASET_ITEM_ID_KEY) -> dict:
27
26
}
28
27
"""
29
28
return self ._client .slice_info (self .slice_id , id_type )
29
+
30
+ def append (self , payload : dict ) -> dict :
31
+ """
32
+ Appends to a slice from items already present in a dataset.
33
+ The caller must exclusively use either datasetItemIds or reference_ids
34
+ as a means of identifying items in the dataset.
35
+
36
+ :param
37
+ payload:
38
+ {
39
+ "dataset_item_ids": List[str],
40
+ "reference_ids": List[str],
41
+ }
42
+
43
+ :return:
44
+ {
45
+ "slice_id": str,
46
+ }
47
+ """
48
+ response = self .client ._make_request (
49
+ payload , f"slice/{ self .slice_id } /append"
50
+ )
51
+ return response
You can’t perform that action at this time.
0 commit comments