Functions

Change a function's runtime key

Change the key the function runs with, or the secrets attached to it. A grant wider than the caller's own is refused. A custom runtime_grant must list addresses or send mail_scope "org" for every mailbox; one that does neither is refused (400 validation_error, details.reason mail_scope_required). The function is redeployed with the new key.

put/functions/{id}/runtime-key

Request

  • Base URL
    https://api.primitive.dev/v1
  • URL
    https://api.primitive.dev/v1/functions/{id}/runtime-key
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

The function id.

Request body

attached_secret_keysstring[]

Response

Change a function's runtime key

successtrue required

Changes

No operation changes recorded.