Functions
Update the linked repository
Changed onChange the branch, the root directory, or whether pushes deploy. Pass at least one field. rootDir: null clears the subdirectory.
patch/v1/functions/{functionId}/git-link
Request
- Base URLhttps://api.zavu.dev
- URLhttps://api.zavu.dev/v1/functions/{functionId}/git-link
- AuthHTTP bearer
Path parameters
functionIdstring required
Zavu Function ID.
Request body
Response
The link.
Example response
{
"link": {
"owner": "acme",
"repo": "order-bot",
"branch": "main"
},
"webhookSecret": "ghs_a1b2c3..."
}Changes
- info
endpoint added
- info