Listing Segments

Return a list of segments according to specified conditions.

POST http://api.ants.tech/access/api/segment/listing

Request

Body

  • page (*) Page number of the listing

  • limit (*) Maximum number of items per page

  • search Keyword to search the Segment (can be the segment name or ID)

  • columns (*): Columns to be retrieved in the listing. Chosen from the list below:

Name
Data Type
Example

c_user_id

compute_schedule

compute_schedule_end

compute_schedule_start

ctime

item_type_id

label_ids

last_processed_date

process_status

response_code

segment_display

segment_id

segment_size

source_names

status

storage_type

u_user_id

update_method

utime

  • sort[optional]: Column to sort the listing result (default: u_user_id)

  • sd[optional]: Sort direction for the listing result (default: desc)

    • desc: Descending order

    • asc: Ascending order

  • filters: Filter the listing based on conditions

    • OR: Filter conditions using OR logic

      • AND: Filter conditions using AND logic

        • column: Name of the column to filter

        • data_type: Data type of the column

        • operator: Operator used for filtering

        • value: Value to filter by

Headers

Name
Description

Authorization*

Bearer <ACCESS_TOKEN>

Response

  • entries: List of segments

  • meta:

    • perPage: Number of items to limit when retrieving the list

    • total: Total number of segments

Last updated