put
https://{yourinstance}.makaira.io/storefront/deployments/github/deploy-branch
Updates the GitHub branch used for automatic deployments.
Updates the GitHub branch that is used for automatic deployments.
Requires the storefront:deployments:write or storefront.write permission.
Request
PUT /storefront/deployments/github/deploy-branch
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/x-www-form-urlencoded |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
branch | string | Yes | The name of the GitHub branch to set as the auto-deploy branch. |
Example Request
PUT /storefront/deployments/github/deploy-branch
Content-Type: application/x-www-form-urlencoded
branch=main
Response
Example Response
{
"ok": true
}
