> For the complete documentation index, see [llms.txt](https://lumiwavelab.gitbook.io/internal-inno-platform-doc-kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lumiwavelab.gitbook.io/internal-inno-platform-doc-kr/reference/api-reference-v2/inno-status/undefined-1.md).

# 정검 상태 변경

<mark style="color:orange;">`PUT`</mark> `https://{status-domain:internal}/m1.0/status/main`

#### Request Body

| Name                                    | Type   | Description                           |
| --------------------------------------- | ------ | ------------------------------------- |
| state<mark style="color:red;">\*</mark> | int    | <p>0 : 정상<br>1 : 정검중<br>2 : 서비스장애</p> |
| info                                    | object | **state가 1인 경우에만 필요함**                |
| info:start\_date                        | string | 정검 시작 시간 (ms)                         |
| info:end\_date                          | string | 정검 종료 시간 (ms)                         |
| info:content                            | string | Description                           |

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

```json
{
    "return": 0,
    "message": "success",
    "value": {
        "state": 0,
        "info": {}
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```powershell
curl --location --request PUT 'http://localhost:51060/m1.0/status/main' \
--header 'Content-Type: application/json' \
--data '{
    "state": 1,
    "info": {
        "start_date": "1688101200000",
        "end_date": "1688112000000",
        "content": "system check"
    }
}'

```

{% endtab %}

{% tab title="Response 'Value'" %}

{% endtab %}

{% tab title="Result Code" %}

| return        | message | desc. |
| ------------- | ------- | ----- |
| 0             | success | 성공    |
| {% endtab %}  |         |       |
| {% endtabs %} |         |       |
