---
title: "查询用户加入的比赛与作业"
method: GET
path: "/user/problemsets"
tags: ["user", "problemset"]
---

# 查询用户加入的比赛与作业

`GET /user/problemsets`

## Response `200`

查询成功

- object
  - `problemsets` Problemset[]
    - `id` integer
    - `course` Course
      - `id` integer
      - `name` string
      - `description` string
      - `tag` CourseTag
        - `id` integer
        - `name` string
      - `term` Term
        - `id` integer
        - `name` string
        - `start_time` string, date-time
        - `end_time` string, date-time
      - `url` string
      - `join_url` string
      - `quit_url` string
      - `html_url` string
    - `name` string
    - `description` string
    - `allowed_languages` SubmissionLanguage[] — 计入分数的语言
    - `start_time` string, date-time
    - `end_time` string, date-time
    - `type` 'contest' | 'homework' | 'exam'
    - `problems` ProblemBrief[]
      - `id` integer
      - `title` string
      - `url` string
      - `submit_url` string
      - `html_url` string
    - `url` string
    - `join_url` string
    - `quit_url` string
    - `html_url` string

## Changes

- **2024-08-14** `31431aaf46d3` — 1 info
  - endpoint added
- **2024-08-12** `abf18f0fc1b3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1/changes/user/problemsets/get.md)

---

[API](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1.md) · [All operations](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/acmclassoj/acmoj-api-v1/revisions/31431aaf46d3/schema)
