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

# 查询用户加入的比赛与作业 (problemset:read)

`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, nullable
      - `quit_url` string, nullable
      - `html_url` string
    - `name` string
    - `description` string
    - `allowed_languages` SubmissionLanguage[] — 计入分数的语言
    - `start_time` string, date-time
    - `end_time` string, date-time
    - `late_submission_deadline` string, date-time, nullable — null 表示不允许迟交
    - `type` 'contest' | 'homework' | 'exam'
    - `problems` ProblemBrief[]
      - `id` integer
      - `title` string, nullable — 题目未发布时此项为 null
      - `url` string, nullable — 题目未发布时此项为 null
      - `submit_url` string, nullable — 题目未发布时此项为 null
      - `html_url` string, nullable — 题目未发布时此项为 null
    - `url` string
    - `join_url` string, nullable
    - `quit_url` string, nullable
    - `html_url` string

## Changes

- **2024-09-20** `3255fcbd64fb` — 1 info
  - added the optional property `problemsets/items/late_submission_deadline` to the response with the `200` status
- **2024-08-14** `aa6951cc6ba1` — 10 breaking
  - the response property `problemsets/items/course/join_url` became nullable for the status `200`
  - the response property `problemsets/items/course/quit_url` became nullable for the status `200`
  - the response property `problemsets/items/course/tag` became nullable for the status `200`
  - the response property `problemsets/items/course/term` became nullable for the status `200`
  - …6 more
- **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/b263b49cfa50/schema)
