Update a sub-customer.
code examples curl request patch \\ \ url https //sand api monoova com/global/v1/sub customers/{id} \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "sub customer" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "sub customer" "" }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/global/v1/sub customers/{id}", 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("https //sand api monoova com/global/v1/sub customers/{id}") 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({ "sub customer" "" }) response = https request(request) puts response read body import requests import json url = "https //sand api monoova com/global/v1/sub customers/{id}" payload = json dumps({ "sub customer" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // a sub customer { "sub customer" {} }