# Create

create a Secret

## HTTP Request

`POST /api/v1/namespaces/default/secrets`

## Body Parameters

| Parameter                                                                               |
| --------------------------------------------------------------------------------------- |
| body [*Secret*](https://hyperhq.gitbook.io/pi-docs/reference/api-v1.9/secret/..#secret) |

## Response

| Code                                                                                     | Description  |
| ---------------------------------------------------------------------------------------- | ------------ |
| 201   [*Secret*](https://hyperhq.gitbook.io/pi-docs/reference/api-v1.9/secret/..#secret) | Created      |
| 400                                                                                      | Bad Request  |
| 500                                                                                      | Server Error |
