curl --request PUT \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": true,
"isAdvancedGrading": true,
"allowHalfSample": true
}
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}"
payload = {
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": True,
"isAdvancedGrading": True,
"allowHalfSample": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
userDefinedId: '<string>',
isDefault: true,
isAdvancedGrading: true,
allowHalfSample: true
})
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'userDefinedId' => '<string>',
'isDefault' => true,
'isAdvancedGrading' => true,
'allowHalfSample' => true
]),
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/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\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": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Updates a size range (full replace).
Updates a size range owned by the current organization. PUT is a full replace: every writable field on the body is written verbatim. name and state are required (missing/null returns 400); userDefinedId is a nullable scalar — omitting it or sending null clears the column; omitted booleans (isDefault, isAdvancedGrading, allowHalfSample) reset to false. isAdvancedGrading is silently cleared unless the Pro module is enabled. Promoting isDefault demotes the previous default. There is no preserve-on-omit semantics — use PATCH for partial updates. defaultGradingSizeId and the sizes[] list are not editable through this endpoint and are ignored if present. The route id wins over any id in the body. Cross-organization access returns 403; a genuinely missing id returns 404.
curl --request PUT \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": true,
"isAdvancedGrading": true,
"allowHalfSample": true
}
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}"
payload = {
"name": "<string>",
"userDefinedId": "<string>",
"isDefault": True,
"isAdvancedGrading": True,
"allowHalfSample": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
userDefinedId: '<string>',
isDefault: true,
isAdvancedGrading: true,
allowHalfSample: true
})
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}', 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/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'userDefinedId' => '<string>',
'isDefault' => true,
'isAdvancedGrading' => true,
'allowHalfSample' => true
]),
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/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/size-ranges/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"isDefault\": true,\n \"isAdvancedGrading\": true,\n \"allowHalfSample\": true\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": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "success",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Headers
Path Parameters
Unique identifier of the size range to update.
Body
Display name of the size range. Required.
Customer-defined identifier for the size range. Send null to clear it.
Lifecycle state to set on the size range. Required.
active, inactive Whether this size range is the organization's default. Promoting it demotes the previous default. On PUT, omitting it resets the flag to false; on PATCH, an omitted value is preserved.
Whether advanced grading is enabled. It is silently cleared unless the Pro module is enabled. On PUT, omitting it resets the flag to false; on PATCH, an omitted value is preserved.
Whether half-size samples are permitted for this size range. On PUT, omitting it resets the flag to false; on PATCH, an omitted value is preserved.
Response
OK
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