# Reload Certificate

## Reload All Certificates

모든 Virtual Hosts의 Certificate를 일괄적으로 Reload합니다. 실패하더라도 기존 Certificate를 계속 사용합니다.

> **Request**

<details>

<summary><mark style="color:blue;">POST</mark> /v1/vhosts:reloadAllCertificates</summary>

#### Header

```http
Authorization: Basic {credentials}

# Authorization
    Credentials for HTTP Basic Authentication created with <AccessToken>
```

</details>

> **Responses**

<details>

<summary><mark style="color:blue;">200</mark> Ok</summary>

The request has succeeded

**Header**

```
Content-Type: application/json
```

**Body**

```json
{
    "message": "OK",
    "statusCode": 200
}

# statusCode
	Same as HTTP Status Code
# message
	A human-readable description of the response code
```

</details>

<details>

<summary><mark style="color:red;">500</mark> Internal Server Error</summary>

Failed to reload certificate. Keep the existing certificate. The reason for the failure can be found in the server logs.

</details>

## Reload Certificate

지정한 Virtual Hosts의 Certificate를 Reload합니다. 실패하더라도 기존 Certificate를 계속 사용합니다.

> **Request**

<details>

<summary><mark style="color:blue;">POST</mark> /v1/vhosts/{vhost}:reloadCertificate</summary>

#### Header

```http
Authorization: Basic {credentials}

# Authorization
    Credentials for HTTP Basic Authentication created with <AccessToken>
```

</details>

> **Responses**

<details>

<summary><mark style="color:blue;">200</mark> Ok</summary>

The request has succeeded

**Header**

```http
Content-Type: application/json
```

**Body**

<pre class="language-json"><code class="lang-json">{
<strong>    "message": "OK",
</strong>    "statusCode": 200
}

# statusCode
    Same as HTTP Status Code
# message
    A human-readable description of the response code
</code></pre>

</details>

<details>

<summary><mark style="color:red;">500</mark> Internal Server Error</summary>

Failed to reload certificate. Keep the existing certificate. The reason for the failure can be found in the server logs.

</details>
