iR Engine API
client-setting
/client-setting
1 min
code examples curl location request put '/client setting' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '\[ { "id" "", "logo" "", "title" "", "shorttitle" "", "startpath" "", "url" "", "releasename" "", "sitedescription" "", "appletouchicon" "", "favicon32px" "", "favicon16px" "", "icon192px" "", "icon512px" "", "sitemanifest" "", "safaripinnedtab" "", "favicon" "", "webmanifestlink" "", "swscriptlink" "", "appbackground" "", "apptitle" "", "appsubtitle" "", "appdescription" "", "appsociallinks" \[], "gtmcontainerid" "", "themesettings" "", "thememodes" "", "key8thwall" "", "privacypolicy" "", "termsofservice" "", "assistancelink" "", "homepagelinkbuttonenabled" "", "homepagelinkbuttonredirect" "", "homepagelinkbuttontext" "", "createdat" "", "updatedat" "", "mediasettings" "" } ]'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify(\[ { "id" "", "logo" "", "title" "", "shorttitle" "", "startpath" "", "url" "", "releasename" "", "sitedescription" "", "appletouchicon" "", "favicon32px" "", "favicon16px" "", "icon192px" "", "icon512px" "", "sitemanifest" "", "safaripinnedtab" "", "favicon" "", "webmanifestlink" "", "swscriptlink" "", "appbackground" "", "apptitle" "", "appsubtitle" "", "appdescription" "", "appsociallinks" \[], "gtmcontainerid" "", "themesettings" "", "thememodes" "", "key8thwall" "", "privacypolicy" "", "termsofservice" "", "assistancelink" "", "homepagelinkbuttonenabled" "", "homepagelinkbuttonredirect" "", "homepagelinkbuttontext" "", "createdat" "", "updatedat" "", "mediasettings" "" } ]); var requestoptions = { method 'put', headers myheaders, body raw, redirect 'follow' }; fetch("/client setting", 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("/client setting") http = net http new(url host, url port); request = net http put new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump(\[ { "id" "", "logo" "", "title" "", "shorttitle" "", "startpath" "", "url" "", "releasename" "", "sitedescription" "", "appletouchicon" "", "favicon32px" "", "favicon16px" "", "icon192px" "", "icon512px" "", "sitemanifest" "", "safaripinnedtab" "", "favicon" "", "webmanifestlink" "", "swscriptlink" "", "appbackground" "", "apptitle" "", "appsubtitle" "", "appdescription" "", "appsociallinks" \[], "gtmcontainerid" "", "themesettings" "", "thememodes" "", "key8thwall" "", "privacypolicy" "", "termsofservice" "", "assistancelink" "", "homepagelinkbuttonenabled" "", "homepagelinkbuttonredirect" "", "homepagelinkbuttontext" "", "createdat" "", "updatedat" "", "mediasettings" "" } ]) response = http request(request) puts response read body import requests import json url = "/client setting" payload = json dumps(\[ { "id" "", "logo" "", "title" "", "shorttitle" "", "startpath" "", "url" "", "releasename" "", "sitedescription" "", "appletouchicon" "", "favicon32px" "", "favicon16px" "", "icon192px" "", "icon512px" "", "sitemanifest" "", "safaripinnedtab" "", "favicon" "", "webmanifestlink" "", "swscriptlink" "", "appbackground" "", "apptitle" "", "appsubtitle" "", "appdescription" "", "appsociallinks" \[], "gtmcontainerid" "", "themesettings" "", "thememodes" "", "key8thwall" "", "privacypolicy" "", "termsofservice" "", "assistancelink" "", "homepagelinkbuttonenabled" "", "homepagelinkbuttonredirect" "", "homepagelinkbuttontext" "", "createdat" "", "updatedat" "", "mediasettings" "" } ]) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("put", url, headers=headers, data=payload) print(response text) responses // success \[ { "id" "", "logo" "", "title" "", "shorttitle" "", "startpath" "", "url" "", "releasename" "", "sitedescription" "", "appletouchicon" "", "favicon32px" "", "favicon16px" "", "icon192px" "", "icon512px" "", "sitemanifest" "", "safaripinnedtab" "", "favicon" "", "webmanifestlink" "", "swscriptlink" "", "appbackground" "", "apptitle" "", "appsubtitle" "", "appdescription" "", "appsociallinks" \[ "" ], "gtmcontainerid" "", "gtmauth" "", "gtmpreview" "", "themesettings" {}, "thememodes" {}, "key8thwall" "", "privacypolicy" "", "termsofservice" "", "assistancelink" "", "homepagelinkbuttonenabled" false, "homepagelinkbuttonredirect" "", "homepagelinkbuttontext" "", "createdat" "", "updatedat" "", "mediasettings" {} } ]// not authenticated // general error