-
Notifications
You must be signed in to change notification settings - Fork 4
Update Service
bjbbarr edited this page May 3, 2013
·
1 revision
Sending a POST request on with the path "/system/update" allows you to update the content that cadmium is serving based on the repo, branch and revision.
POST /system/update
> Accepts: application/json
{
repo: "cadmium-project",
branch: "develop",
sha: "123ab542",
comment: "A comment that will be recorded in the history"
}
< 200
< Content-Type: application/json
{
message: "Successfully Updated the site"
}
You can update a configuration located on a configuration branch by sending a POST request with the path "/system/update/config".
POST /system/update/config
> Accepts: application/json
{
repo: "cadmium-project",
branch: "cfg-develop",
sha: "ec452652",
comment: "A comment that will be recorded in the history"
}
< 200
< Content-Type: application/json
{
message: "Successfully Updated the configuration for this site",
uuid: "12345",
timestamp: ""
}