# Auto Pull
Git deployment in Enable or Disable auto pull.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/git/webhook/{status:true,false}
# Curl Request example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/git/webhook/true" \
--header 'content-type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Enable/Disable Auto pull
- 200 (Ok)
{
"message":"Git webhook enable successfully!"
}
# Git Deployment Not Found
- 404 (Not Found)
{
"message": "Git deployment not found!"
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Application Not Found
- 404 (Not Found)
{
"message": "Application not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message": "Server not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}
← Change Branch Script →