> ## Documentation Index > Fetch the complete documentation index at: https://docs.britive.com/llms.txt > Use this file to discover all available pages before exploring further. # Create StaticSecretTemplate for static secret ## OpenAPI ````json POST /api/v1/secretmanager/secret-templates/static { "openapi": "3.0.1", "info": { "title": "Secret Manager APIs", "version": "v1", "description": "API documentation for Secret Manager, Policy Administration, Notifications, Approval service, etc." }, "servers": [ { "url": "https://{tenantURL}", "description": "The primary server", "variables": { "tenantURL": { "default": "test.britive-app.com", "description": "The host of the server" } } } ], "security": [ { "bearerAuth": [] } ], "tags": [ { "name": "Approvals" }, { "name": "Notification Service" }, { "name": "Policy Administration" }, { "name": "Secrets Manager" }, { "name": "Secret Rotation" } ], "paths": { "/api/v1/secretmanager/secret-templates/static": { "post": { "tags": [ "Secrets Manager" ], "summary": "Create StaticSecretTemplate for static secret", "operationId": "createSecretParam", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StaticSecretTemplateDTO" }, "example": { "secretType": "AWSServiceSecretTes", "description": "description", "rotationInterval": "30", "parameters": [ { "name": "url", "description": "DB Hostname", "mask": "false", "required": "true", "type": "singleLine", "metadata": "true" }, { "name": "username", "description": "DB Username", "mask": "true", "required": "false", "type": "multiLine", "metadata": "false" }, { "name": "password", "description": "DB Password", "mask": "true", "required": "true", "type": "password", "metadata": "false" }, { "name": "test file", "description": "test file upload", "mask": "false", "required": "true", "type": "fileUpload", "metadata": "false" } ], "passwordPolicyId": "81910feb-92d3-4583-b9a9-dd3476381a6b" } } }, "required": "false" }, "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { "type": "object" } } } } } } } }, "components": { "schemas": { "StaticSecretTemplateDTO": { "type": "object", "properties": { "id": { "type": "string" }, "secretType": { "maxLength": "30", "minLength": "1", "pattern": "^[a-zA-Z0-9-_\\s]{1,30}$", "type": "string" }, "description": { "maxLength": "255", "minLength": "0", "type": "string" }, "rotationInterval": { "type": "integer", "format": "int32" }, "parameters": { "type": "array", "items": { "$ref": "#/components/schemas/StaticSecretFieldParamsDTO" } }, "passwordPolicyId": { "type": "string" }, "passwordRepetitionLimit": { "type": "integer", "format": "int32", "description": "Minimum number of password versions to retain before a previous value can be reused." }, "refCount": { "type": "integer", "format": "int32", "description": "Number of active (non-deleted) secrets that reference this template. Maintained automatically by the system; cannot be set by the caller." } } }, "StaticSecretFieldParamsDTO": { "required": [ "mask", "required", "type" ], "type": "object", "properties": { "name": { "maxLength": "30", "minLength": "1", "pattern": "^[a-zA-Z0-9-_\\s]{1,30}$", "type": "string" }, "description": { "maxLength": "255", "minLength": "0", "type": "string" }, "mask": { "type": "boolean" }, "required": { "type": "boolean" }, "type": { "pattern": "singleLine|multiLine|password|fileUpload|otp|otpSeed|recoveryKeys|resource|account", "type": "string" }, "allowDualValues": { "type": "boolean", "description": "Applicable only when type is account or password. When true, the secret must carry two values (Primary and Secondary) for this field, enabling the Dual Account rotation feature.\n" }, "discoverable": { "type": "boolean", "description": "Applicable only when type is account. When true, users can browse and select accounts discovered from the linked resource in Resource Manager instead of entering an account name manually.\n" }, "metadata": { "type": "boolean", "description": "Marks the field as metadata (non-sensitive). Changes to metadata fields do not trigger a new secret version." } } } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer" } } } } ````