Get a project's content sync and its latest runs
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"contentSync": {
"sync": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"config": {},
"schedule": "manual",
"nextRunAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"trigger": "manual",
"status": "running",
"pullRequestUrl": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Projects
Get a project's content sync and its latest runs
Requires projects:read. Returns the project’s built-in sync with a repository or CMS (the Sync panel in the app) and its 10 most recent runs, newest first. sync is null when the project has none.
GET
https://public-api.hyperlocalise.com
/
v1
/
projects
/
{projectId}
/
content-sync
Get a project's content sync and its latest runs
curl --request GET \
--url https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.hyperlocalise.com/v1/projects/{projectId}/content-sync"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"contentSync": {
"sync": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "github",
"config": {},
"schedule": "manual",
"nextRunAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"runs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "<string>",
"trigger": "manual",
"status": "running",
"pullRequestUrl": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Was this page helpful?

