Search Sequences

This endpoint allows for the efficient searching and filtering of sequence records based on specified query parameters such as title, description, status, visibility, and created date. It is designed to support operations that require accessing detailed sequence information quickly and effectively.

Endpoint and Usage:

Endpoint: GET /api/sequences/search/

Base URL: https://api.vomevolunteer.com

Query Parameters:

Core Filters

  • id (uuid): Filters sequences by ID.

  • title (string): Filters sequences by title.

  • description (string): Filters sequences by description.

  • status (string): Filters sequences by status (0 = Draft, 1 = Published, 2 = Unpublished).

  • display_status (string): Filters sequences by visibility (0 = Private, 1 = Public).

  • created_at (string, ISO-8601): Filters sequences by exact created_at.

  • created_at.gt (string, ISO-8601): Filters by created_at > value.

  • created_at.gte (string, ISO-8601): Filters by created_at >= value.

  • created_at.lte (string, ISO-8601): Filters by created_at <= value.

  • created_at.lt (string, ISO-8601): Filters by created_at < value.

  • ordering (string): Sorts results by created_at or -created_at.

Sequence Statuses

  • 0: Draft

  • 1: Published

  • 2: Unpublished

Display Statuses

  • 0: Private

  • 1: Public

Sample Requests

Authorization:

Requests to this endpoint require an API-KEY in the header for authentication.

Response Structure:

The response from this endpoint returns a paginated list of sequences that match the query parameters, including folder metadata, counts, and step information for each sequence.

Example Response Object:

Example Response Structure

Summary Information

  • count: Total number of matching sequences.

  • next: URL for the next page of results, or null.

  • previous: URL for the previous page of results, or null.

Sequence Object

  • id: Unique ID of the sequence.

  • created_at: Created timestamp of the sequence.

  • updated_at: Last updated timestamp of the sequence.

  • title: Sequence title.

  • description: Sequence description.

  • folder: Related folder object, or null.

  • status: Human-readable sequence status in the response.

  • display_status: Human-readable visibility status in the response.

  • number_users_active: Count of active users.

  • number_users_paused: Count of paused users.

  • number_users_inactive: Count of inactive users.

  • number_users_finished: Count of finished users.

  • number_active_steps: Count of active steps.

  • step_info: Ordered step metadata array.

Validation Rules

  • Invalid timestamps return 400 Bad Request.

  • ordering only accepts created_at or -created_at.

  • If no ordering is supplied, results default to -created_at.

Example validation error:

Last updated