Functions

Set a function secret

Sets an environment variable available to all functions in the project.

post/projects/v1/admin/{project_id}/secrets

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/admin/{project_id}/secrets
  • Auth: HTTP bearer

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042

Request body

keystring required
valuestring required

Response

Secret set

statusstring
keystring

Example response

{
  "status": "set"
}

Changes

No recorded changes to this operation across all 1 revision of this API.