Updates multiple colors in a single transaction.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": null,
"colorNote": "<string>",
"colorGroupIds": [
123
],
"languageIds": [
123
]
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors"
payload = [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": None,
"colorNote": "<string>",
"colorGroupIds": [123],
"languageIds": [123]
}
]
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([
{
id: 123,
name: '<string>',
userDefinedId: '<string>',
userDefinedId2: '<string>',
colorReference: '<string>',
state: null,
colorNote: '<string>',
colorGroupIds: [123],
languageIds: [123]
}
])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors', 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 => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors",
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([
[
'id' => 123,
'name' => '<string>',
'userDefinedId' => '<string>',
'userDefinedId2' => '<string>',
'colorReference' => '<string>',
'state' => null,
'colorNote' => '<string>',
'colorGroupIds' => [
123
],
'languageIds' => [
123
]
]
]),
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 := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors"
payload := strings.NewReader("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\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("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": "<unknown>",
"colorNote": "<string>",
"colorGroups": [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"state": "<unknown>"
}
],
"languageNames": [
{
"languageId": 123,
"languageName": "<string>",
"languageCode": "<string>",
"colorName": "<string>"
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Colors
Updates multiple colors in a single transaction.
Updates colors in an all-or-nothing transaction. PUT is a full replace: every field on each request item is written to the database verbatim. Required fields (name, state) must be present and non-null on every item; missing or null returns 400. Nullable scalar fields (userDefinedId, userDefinedId2, colorReference, colorNote) clear the column when sent as null. Collections ('colorGroupIds', 'languageIds') are written verbatim: an explicit list replaces the association set, an empty array or an omitted/null field clears the set. Unknown colorGroupIds or languageIds are rejected per-id with field paths items[n].colorGroupIds[i] / items[n].languageIds[k]. To soft-delete in bulk send {"id":x,"name":"...","state":"deleted"}.
PUT
/
api
/
colors
Updates multiple colors in a single transaction.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": null,
"colorNote": "<string>",
"colorGroupIds": [
123
],
"languageIds": [
123
]
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors"
payload = [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": None,
"colorNote": "<string>",
"colorGroupIds": [123],
"languageIds": [123]
}
]
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([
{
id: 123,
name: '<string>',
userDefinedId: '<string>',
userDefinedId2: '<string>',
colorReference: '<string>',
state: null,
colorNote: '<string>',
colorGroupIds: [123],
languageIds: [123]
}
])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors', 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 => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors",
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([
[
'id' => 123,
'name' => '<string>',
'userDefinedId' => '<string>',
'userDefinedId2' => '<string>',
'colorReference' => '<string>',
'state' => null,
'colorNote' => '<string>',
'colorGroupIds' => [
123
],
'languageIds' => [
123
]
]
]),
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 := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors"
payload := strings.NewReader("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\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("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/colors")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"userDefinedId\": \"<string>\",\n \"userDefinedId2\": \"<string>\",\n \"colorReference\": \"<string>\",\n \"state\": null,\n \"colorNote\": \"<string>\",\n \"colorGroupIds\": [\n 123\n ],\n \"languageIds\": [\n 123\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"userDefinedId2": "<string>",
"colorReference": "<string>",
"state": "<unknown>",
"colorNote": "<string>",
"colorGroups": [
{
"id": 123,
"name": "<string>",
"userDefinedId": "<string>",
"state": "<unknown>"
}
],
"languageNames": [
{
"languageId": 123,
"languageName": "<string>",
"languageCode": "<string>",
"colorName": "<string>"
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Body
application/jsontext/jsonapplication/*+json
⌘I