> For the complete documentation index, see [llms.txt](https://jiji6027.gitbook.io/moviebox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jiji6027.gitbook.io/moviebox/reference/movie-box-reference/profile.md).

# Profile

## 유저의 데이터를 가져옴

<mark style="color:blue;">`GET`</mark> `https://MovieBox.api/profile`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

{% tabs %}
{% tab title="200: OK " %}

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

{% endtab %}

{% tab title="404: Not Found " %}

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

{% endtab %}
{% endtabs %}

## 유저의 데이터를 업데이트함

<mark style="color:purple;">`PATCH`</mark> `https://MovieBox.api/profile`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

#### Request Body

| Name           | Type   | Description   |
| -------------- | ------ | ------------- |
| nickname       | String | user nickname |
| password       | String | user password |
| profile\_image | object | profile image |

{% tabs %}
{% tab title="201: Created " %}

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

{% endtab %}

{% tab title="204: No Content " %}

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

{% endtab %}

{% tab title="404: Not Found " %}

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

{% endtab %}
{% endtabs %}

## 해당 유저의 데이터를 삭제함

<mark style="color:red;">`DELETE`</mark> `https://MovieBox.api/profile`

#### Headers

| Name          | Type   | Description |
| ------------- | ------ | ----------- |
| authorization | String | token       |

{% tabs %}
{% tab title="200: OK " %}

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

{% endtab %}

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

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

{% endtab %}
{% endtabs %}
