• Document Up to Date

Sync from Repo

Synchronize Crafter Studio’s database and object state with the underlying repository. This needs to be done if the underlying repository was updated directly, bypassing Studio’s APIs/UI.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /studio, please prefix the API URLs with this context.

HTTP Verb
POST
URL
/api/1/services/api/1/repo/sync-from-repo.json
Response Formats
JSON
Required Role
Admin, site member

Parameters

Name
Type
Required
Description
site_id
String
Site to use

Example

Request

POST .../api/1/services/api/1/repo/sync-from-repo.json

{
  "site_id" : "mysite"
}

Response

Status 200 OK

Responses

Status
Location
Response Body
200

{ "message" : "OK" }
400

{ "message" : "Invalid parameter(s)" }
400

{ "message" : "Bad Request" }
401

{ "message" : "Unauthorized" }
404

{ "message" : "Site not found" }
500

{ "message" : "Internal server error" }