Update repository
Update the owner, name, or branch of a WordPress sub-repository.
PATCH/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}
Update repository
Updates the repository metadata. When the branch is changed, any git pull origin {branch} reference in the deploy script is automatically updated.
Optional attributes
- Name
user- Type
- string
- Description
The repository owner/username.
- Name
name- Type
- string
- Description
The repository name.
- Name
branch- Type
- string
- Description
The branch to deploy from.
Request
PATCH
/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}curl -X PATCH "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"branch": "develop"}'
Response
{
"status": "ok",
"message": "Repository updated."
}