Update sync logs with a full sync
code examples curl request put \\ \ url /api/v1/sync log/{integration}/{data type} \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'site id jones climbing' \\ \ data '{ "started full sync" "2023 01 01t01 01 01z" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("site id", "jones climbing"); var raw = json stringify({ "started full sync" "2023 01 01t01 01 01z" }); var requestoptions = { method 'put', headers myheaders, body raw, redirect 'follow' }; fetch("/api/v1/sync log/{integration}/{data type}", 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}") http = net http new(url host, url port); request = net http put new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["site id"] = "jones climbing" request body = json dump({ "started full sync" "2023 01 01t01 01 01z" }) response = http request(request) puts response read body import requests import json url = "/api/v1/sync log/{integration}/{data type}" payload = json dumps({ "started full sync" "2023 01 01t01 01 01z" }) headers = { 'accept' 'application/json', 'content type' 'application/json', 'site id' 'jones climbing' } response = requests request("put", url, headers=headers, data=payload) print(response text) responses // successful response // error response