Planning App APIs
Product Category Constraints
List product category constraints
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/product category constraints' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x coreos request id string' \\ \ header 'x coreos tid string' \\ \ header 'x coreos access string' \\ \ header 'x coreos userinfo string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x coreos request id", "string"); myheaders append("x coreos tid", "string"); myheaders append("x coreos access", "string"); myheaders append("x coreos userinfo", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/planning/product category constraints", 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 //{tenantsubdomain}/tms/api/v1/planning/product category constraints") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x coreos request id"] = "string" request\["x coreos tid"] = "string" request\["x coreos access"] = "string" request\["x coreos userinfo"] = "string" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/planning/product category constraints" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x coreos request id' 'string', 'x coreos tid' 'string', 'x coreos access' 'string', 'x coreos userinfo' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // product category constraints list { "data" { "meta" { "totalelements" 8 }, "productcategoryconstraints" \[ { "id" "pcconstraints01 7f8c8a4a 28d5 57d7 9a53 eb29740c2066", "uniquecode" "clothing weapons", "owner" "os1devs", "createdat" 1722942035369, "createdby" { "id" "5229903b 41e3 404a b1c6 0a590c36829e", "name" "tushar aggarwal" }, "updatedat" 1722942035369, "updatedby" { "id" "5229903b 41e3 404a b1c6 0a590c36829e", "name" "tushar aggarwal" }, "entityname" "pcconstraints01", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "productcategoryconstraint", "productcategoryone" "clothing", "productcategorytwo" "weapons", "isdeleted" false } ] }, "success" true }// internal server error
