Chelabase
ManagementFunctions

Set a function's secret on the branch

PUT
/v1/databases/{id}/branches/{branch_id}/functions/{name}/secrets/{secret}

The function sees it in env. A name is a letter or _, then up to 127 of A-Z, a-z, 0-9 and _; a value is at most 64 KiB, and the function's secrets on the branch at most 128 KiB together. The value is never returned, logged or echoed in an error.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid
name*string

Function name

secret*string

Secret name

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A secret's value; it never comes back.

value*string

At most 64 KiB.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/functions/string/secrets/string" \  -H "Content-Type: application/json" \  -d '{    "value": "string"  }'
Empty