curl --request POST \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges \
--header 'Content-Type: application/json' \
--data '
[
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": true,
"isAdvancedGrading": true,
"allowHalfSample": true,
"sizes": [
{
"name": "<string>",
"sizeId": "<string>"
}
]
}
]
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges"
payload = [
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": True,
"isAdvancedGrading": True,
"allowHalfSample": True,
"sizes": [
{
"name": "<string>",
"sizeId": "<string>"
}
]
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
{
name: '<string>',
userDefinedId: '<string>',
isDefault: true,
isAdvancedGrading: true,
allowHalfSample: true,
sizes: [{name: '<string>', sizeId: '<string>'}]
}
])
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'name' => '<string>',
'userDefinedId' => '<string>',
'isDefault' => true,
'isAdvancedGrading' => true,
'allowHalfSample' => true,
'sizes' => [
[
'name' => '<string>',
'sizeId' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges"
payload := strings.NewReader("[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges")
.header("Content-Type", "application/json")
.body("[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"state": "active",
"userDefinedId": "<string>",
"defaultGradingSizeId": 123,
"defaultGradingSizeName": "<string>",
"sizes": [
{
"id": 123,
"name": "<string>",
"sizeId": "<string>",
"relatedSizeRangeSizeId": 123,
"gradingGroupId": 123
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Creates one or more size ranges in a single transaction.
Body is always an array, even for a single item. Capped at 200 items per request. Each size range must include at least one size. If isAdvancedGrading is true the Pro module must be enabled, otherwise the flag is silently cleared. Only one size range per organization can be marked default; promoting a new default automatically demotes the previous one.
curl --request POST \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges \
--header 'Content-Type: application/json' \
--data '
[
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": true,
"isAdvancedGrading": true,
"allowHalfSample": true,
"sizes": [
{
"name": "<string>",
"sizeId": "<string>"
}
]
}
]
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges"
payload = [
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": True,
"isAdvancedGrading": True,
"allowHalfSample": True,
"sizes": [
{
"name": "<string>",
"sizeId": "<string>"
}
]
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
{
name: '<string>',
userDefinedId: '<string>',
isDefault: true,
isAdvancedGrading: true,
allowHalfSample: true,
sizes: [{name: '<string>', sizeId: '<string>'}]
}
])
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'name' => '<string>',
'userDefinedId' => '<string>',
'isDefault' => true,
'isAdvancedGrading' => true,
'allowHalfSample' => true,
'sizes' => [
[
'name' => '<string>',
'sizeId' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges"
payload := strings.NewReader("[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges")
.header("Content-Type", "application/json")
.body("[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true,\n \"sizes\": [\n {\n \"name\": \"<string>\",\n \"sizeId\": \"<string>\"\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"state": "active",
"userDefinedId": "<string>",
"defaultGradingSizeId": 123,
"defaultGradingSizeName": "<string>",
"sizes": [
{
"id": 123,
"name": "<string>",
"sizeId": "<string>",
"relatedSizeRangeSizeId": 123,
"gradingGroupId": 123
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Headers
Body
Display name of the size range. Required.
Optional customer-defined identifier for the size range.
Lifecycle state to assign to the new size range. Defaults to active.
active, inactive Whether this size range becomes the organization's default. Promoting a new default demotes the previous one.
Whether advanced grading is enabled. The flag is silently cleared unless the Pro module is enabled.
Whether half-size samples are permitted for this size range.
The sizes to create in the range. At least one size is required.
Show child attributes
Show child attributes
Response
Created
The coarse outcome of the request, indicating whether it succeeded or failed.
success, error The specific machine-readable outcome code, such as ok on success or the most specific error code on failure. Always lowercase on the wire.
The response payload, either a single object for a by-id read or an array for a bulk operation. Omitted from the body when there is no value.
Show child attributes
Show child attributes