Core API
...
Core API Docs
Customer Groups

Update Customer Group

code examples curl location globoff request patch 'https //app sparklayer io/api/v1/customer groups/{slug}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "name" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "name" "" }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //app sparklayer io/api/v1/customer groups/{slug}", 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 //app sparklayer io/api/v1/customer groups/{slug}") 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({ "name" "" }) response = https request(request) puts response read body import requests import json url = "https //app sparklayer io/api/v1/customer groups/{slug}" payload = json dumps({ "name" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // successful response \[ { "slug" "eu gbp", "name" "europe (gbp) customers", "parent slug" "base" } ]// error response