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 URLhttps://api.primitive.dev/v1
- URLhttps://api.primitive.dev/v1/functions/{id}/runtime-key
- AuthHTTP bearer
Path parameters
idstring uuid required
The function id.
Request body
Response
Change a function's runtime key
Changes
No operation changes recorded.