Functions
Redeploy a function's stored code
Push the function's stored source again as a new deployment, for example after changing its secrets or runtime key. Takes no body: to ship new code, use updateFunction. A body carrying code is refused rather than ignored.
post/functions/{id}/redeploy
Request
- Base URLhttps://api.primitive.dev/v1
- URLhttps://api.primitive.dev/v1/functions/{id}/redeploy
- AuthHTTP bearer
Path parameters
idstring uuid required
The function id.
Headers
Idempotency-Keystring
Optional client-supplied idempotency key. Retrying a request with the same key returns the original result instead of performing the action a second time; if omitted the server derives one from the canonical payload hash. Safe to retry network failures without duplicating side effects.
Response
Redeploy a function's stored code
Changes
No operation changes recorded.