Get Sync Logging status errors
code examples curl request get \\ \ url /api/v1/sync log/{integration}/{data type}/errors \\ \ header 'accept application/json' \\ \ header 'site id jones climbing'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("site id", "jones climbing"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/api/v1/sync log/{integration}/{data type}/errors", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("/api/v1/sync log/{integration}/{data type}/errors") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["site id"] = "jones climbing" response = http request(request) puts response read body import requests import json url = "/api/v1/sync log/{integration}/{data type}/errors" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'site id' 'jones climbing' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful response { "started full sync" "2023 01 01t01 01 01z", "last full sync" "2023 01 01t01 01 01z", "last full sync succeeded" true, "last partial sync" "2023 01 01t01 01 01z", "error count" 3 }// error response