Skip to content

BE 1 - Implement create_cohort API function #52

@LeandroHamaguchi

Description

@LeandroHamaguchi

Create an API function to add new Roles to the database. Here are some resources:

Notes:

  • The API functions should be written inside src/lib/api/
  • Ensure proper error handling and validation of input data
  • Include a description of the ticket and the implementation in the PR (with screenshots showing that it works!)

The goal is to:

  • Create a function that accepts roles data and inserts it into the Supabase database
  • Return appropriate success response and throw errors
  • The return value should be the data object returned from the method .from("Cohorts").select()

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendthis ticket is part of the backend

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions