Tally Platform API
audit-configuration
Patch audit configuration
1 min
code examples curl location globoff request patch 'https //api b preview\ loyaltyservices io/api/v3/audit/configurations/{schemaname}/{tablename}/{columnname}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "schemaname" "dbo", "tablename" "", "columnname" "", "isactive" true }'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/audit/configurations/{schemaname}/{tablename}/{columnname}") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "schemaname" "dbo", "tablename" "", "columnname" "", "isactive" true }) response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/audit/configurations/{schemaname}/{tablename}/{columnname}" payload = json dumps({ "schemaname" "dbo", "tablename" "", "columnname" "", "isactive" true }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, "{\n \\"schemaname\\" \\"dbo\\",\n \\"tablename\\" \\"\\",\n \\"columnname\\" \\"\\",\n \\"isactive\\" true\n}"); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/audit/configurations/{schemaname}/{tablename}/{columnname}") method("patch", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // success { "auditconfigurationid" "", "schemaname" "", "tablename" "", "columnname" "", "tabledisplayname" "", "columndisplayname" "", "isactive" false, "createdate" "", "updatedate" "" }// bad request { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// unauthorized // forbidden // not found { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// internal error