# \[PATCH] Profile

<mark style="color:purple;">`PATCH`</mark> `api/v1/user/profile`

#### Request Body

| Name                                    | Type   | Description |
| --------------------------------------- | ------ | ----------- |
| image<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200: OK accessToken이 있을 경우 (로그인 상태)" %}

```javascript
{
    message: "success change image"
}
```

{% endtab %}

{% tab title="200: OK accessToken이 없을 경우 (비로그인 상태)" %}

```javascript
{
    message: "not logged in"
}
```

{% endtab %}

{% tab title="401: Unauthorized accessToken 만료시" %}

```javascript
{
    message: "acessToken Expiration. plz Login"
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://namhunkim.gitbook.io/onwedding-1/user/patch-profile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
