---
title: "局部更新个人资料。仅提交需要修改的字段，未提交字段保持不变。"
method: PATCH
path: "/api/profile"
tags: ["Profile"]
---

# 局部更新个人资料。仅提交需要修改的字段，未提交字段保持不变。

`PATCH /api/profile`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/profile`
- Auth: HTTP bearer

## Request body

- CoreUserprofileControllerRequestProfilePatchRequest
  - `birthday` CoreUserprofileControllerRequestProfilePatchRequestBirthdayPatch
    - `date` integer
    - `month` integer
    - `year` integer
  - `enrollment` integer, nullable
  - `faculty` integer
  - `hometown` CoreUserprofileControllerRequestProfilePatchRequestLocationPatch
    - `city` string, nullable
    - `region` string
    - `state` string, nullable
  - `introduction` string, nullable
  - `location` CoreUserprofileControllerRequestProfilePatchRequestLocationPatch
    - `city` string, nullable
    - `region` string
    - `state` string, nullable
  - `major` string, nullable
  - `nickname` string

## Response `200`

Successful HTTP response; legacy business endpoints may return success=false in this envelope, while social endpoints use matching 4xx/5xx statuses

- object

## Other responses

- `400`: Request validation failure; legacy endpoints may still return HTTP 200 with success=false
- `401`: Missing, expired or invalid bearer token
- `403`: Forbidden or privacy restriction
- `429`: Rate limited
- `500`: Server failure; legacy endpoints may still return HTTP 200 with success=false

## Changes

- **2026-11-04** `bbd151b5879f`: 10 info
  - api tag `Profile` added
  - api tag `ProfilePatch` removed
  - added the new optional request property `birthday`
  - added the new optional request property `enrollment`
  - …6 more
- **2026-10-08** `a96dcbb87395`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/changes/api/profile/patch.md)

---

[API](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api.md) - [All operations](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gdeiassistant/apis/gdeiassistant-api/revisions/b3983583c335?raw)
