---
title: "POST /resource/{tenantLocator}/secrets"
method: POST
path: "/resource/{tenantLocator}/secrets"
---

# POST /resource/{tenantLocator}/secrets

`POST /resource/{tenantLocator}/secrets`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/resource/{tenantLocator}/secrets`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/resource/:tenantLocator/secrets/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required

## Request body

- SecretCreateRequest
  - `name` string, required
  - `staticName` string, required
  - `jurisdictions` string[], required
  - `secret` object, required

## Response `200`

OK

- SecretResponse
  - `resource` BasicResourceResponse, required
    - `name` string, required
    - `staticName` string
    - `resourceType` 'constraintTable' | 'customFont' | 'documentTemplate' | 'documentTemplateSnippet' | 'rangeTable' | 'secret' | 'staticDocument' | 'table', required
    - `lookupTableLocator` string, ulid
    - `rangeTableLocator` string, ulid
    - `constraintTableLocator` string, ulid
    - `template` string
    - `staticDocumentLocator` string, ulid
    - `fontLocator` string, ulid
    - `riskAssessmentCriteriaLocator` string, ulid
    - `uiConfigLocator` string, ulid
    - `templateFormat` 'liquid' | 'velocity'
    - `createdBy` string, uuid, required
    - `createdAt` string, date-time, required
    - `jurisdictions` string[], required
  - `secret` object, required

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
