Skip to content

Endpoint to update datasetsΒ #46

@rcmtcristian

Description

@rcmtcristian

πŸ› οΈ Update Dataset


πŸ“‹ Endpoints Required

  • PUT /api/v1/data_sources/:id/datasets/:id β€” Update resource

πŸ—‚οΈ Data Schema

Describe or paste the expected request/response shape below.

{
  name: string,
  rows: Array of data to insert, must have all the req. columns from table definition,
}

Note: See dataset.test.ts for examples of how to use the Dataset API.

βœ… Acceptance Criteria

  • All endpoints return correct HTTP status codes
  • Input validation is applied to request bodies and query params
  • Errors return consistent, descriptive JSON responses
  • Endpoints are protected by appropriate auth/authorization middleware
  • Pagination supported on the list endpoint
  • Unit tests cover each endpoint (happy path + error cases)
  • Integration tests pass in CI
  • OpenAPI / Swagger docs updated

πŸ”’ Auth & Permissions

N/A

πŸ”— Related


πŸ’¬ Additional Context

Once the schema is in place, we won't have a good way to update it and will have to build that functionality out later. For now, this endpoint can just be used to insert data.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions