POST
/
api
/
v1
/
tenants
/
{tenant_id}
/
secrets
{
  "service_name": "<string>",
  "secret_key": "<string>",
  "tenant_id": 123,
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Create a new secret for a specific tenant.

  • Method: POST
  • Path: /api/v1/tenants/{tenant_id}/secrets

Path Parameter

  • tenant_id (integer, required): The ID of the tenant

Request Body

Refer to the TenantSecretCreate schema in the OpenAPI playground.

Response

Returns a TenantSecretResponse object on success.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

tenant_id
integer
required

Body

application/json

Response

201
application/json

Successful Response

The response is of type object.