# Sync

Sync between your staging and production site.

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/sync

# Curl Request example:

curl --request GET \
  --url "https://api.serveravatar.com/organizations/5/servers/15/applications/88/sync" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

  • 200 (Ok)
{
  "message":"Sync staging to production started."
}

# Permission Error

  • 404 (Not Found)
{
    "message": "You cannot perform this action!"
}

# Permission Error

  • 404 (Not Found)
{
    "message": "You cannot perform this action, Please contact support!"
}

# Another Process Running

  • 500 (Internal Server Error)
{
    "message": "Please wait another process already running!"
}

# Staging Server Not Found

  • 404 (Not Found)
{
    "message": "Staging server not found!"
}

# Staging Application Not Found

  • 404 (Not Found)
{
    "message": "Staging application not found!"
}

# Staging Database Not Found

  • 404 (Not Found)
{
    "message": "Staging database not found!"
}

# Disk Space Error

  • 500 (Internal Server Error)
{
    "message": "Staging site sync is failed because you do not have enough disk space available on your staging server!"
}

# Disk Space Error

  • 500 (Internal Server Error)
{
    "message": "Staging site sync is failed because you do not have enough disk space available on your production server!"
}

# 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!"
}
Last Updated: 4/22/2023, 2:06:08 PM