curl --request PUT \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"description": "<string>",
"logoResourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraText": "<string>",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
]
}
]
}
],
"properties": [
"<string>"
]
}
]
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles"
payload = [
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"description": "<string>",
"logoResourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraText": "<string>",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
]
}
]
}
],
"properties": ["<string>"]
}
]
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>',
customId: '<string>',
description: '<string>',
logoResourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
extraText: '<string>',
season: {id: 123, customId: '<string>', name: '<string>', project: '<string>'},
group: {id: 123, customId: '<string>', name: '<string>'},
brand: {
id: 123,
customId: '<string>',
name: '<string>',
contactPersonId: '<string>',
contactPersonName: '<string>'
},
supplier: {
id: 123,
customId: '<string>',
name: '<string>',
contactPersonId: '<string>',
contactPersonName: '<string>'
},
categories: [{id: 123, customId: '<string>', name: '<string>'}],
styleColors: [{id: 123, name: '<string>', customId1: '<string>', customId2: '<string>'}],
customFields: [
{
id: 123,
customId1: '<string>',
type: '<string>',
name: '<string>',
value: {id: 123, customId: '<string>', value: '<string>'},
values: [{id: 123, customId: '<string>', value: '<string>'}],
perColorValues: [
{
styleColorId: 123,
value: {id: 123, customId: '<string>', value: '<string>'},
values: [{id: 123, customId: '<string>', value: '<string>'}]
}
]
}
],
properties: ['<string>']
}
])
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles', 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/styles",
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>',
'customId' => '<string>',
'description' => '<string>',
'logoResourceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'extraText' => '<string>',
'season' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'project' => '<string>'
],
'group' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>'
],
'brand' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'contactPersonId' => '<string>',
'contactPersonName' => '<string>'
],
'supplier' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'contactPersonId' => '<string>',
'contactPersonName' => '<string>'
],
'categories' => [
[
'id' => 123,
'customId' => '<string>',
'name' => '<string>'
]
],
'styleColors' => [
[
'id' => 123,
'name' => '<string>',
'customId1' => '<string>',
'customId2' => '<string>'
]
],
'customFields' => [
[
'id' => 123,
'customId1' => '<string>',
'type' => '<string>',
'name' => '<string>',
'value' => [
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
],
'values' => [
[
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
]
],
'perColorValues' => [
[
'styleColorId' => 123,
'value' => [
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
],
'values' => [
[
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
]
]
]
]
]
],
'properties' => [
'<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/styles"
payload := strings.NewReader("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\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("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles")
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 {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"state": "unpublished",
"description": "<string>",
"logo": "<string>",
"extraText": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"styleInfoUpdatedOn": "2023-11-07T05:31:56Z",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>",
"country": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"contactPerson": {
"name": "<string>",
"email": "<string>",
"status": "active"
}
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>",
"state": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
]
}
]
}
],
"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>"
}
]
}
}Full-replace multiple styles (bulk PUT).
Full-replace semantics for multiple styles in a single all-or-nothing transaction. Each item must include a valid style ID. Same field semantics as single PUT. Per-item validation errors are returned with [i].field paths.
curl --request PUT \
--url https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles \
--header 'Content-Type: application/json' \
--data '
[
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"description": "<string>",
"logoResourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraText": "<string>",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
]
}
]
}
],
"properties": [
"<string>"
]
}
]
'import requests
url = "https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles"
payload = [
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"description": "<string>",
"logoResourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"extraText": "<string>",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"customId": "<string>",
"value": "<string>"
},
"values": [
{
"id": 123,
"customId": "<string>",
"value": "<string>"
}
]
}
]
}
],
"properties": ["<string>"]
}
]
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>',
customId: '<string>',
description: '<string>',
logoResourceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
extraText: '<string>',
season: {id: 123, customId: '<string>', name: '<string>', project: '<string>'},
group: {id: 123, customId: '<string>', name: '<string>'},
brand: {
id: 123,
customId: '<string>',
name: '<string>',
contactPersonId: '<string>',
contactPersonName: '<string>'
},
supplier: {
id: 123,
customId: '<string>',
name: '<string>',
contactPersonId: '<string>',
contactPersonName: '<string>'
},
categories: [{id: 123, customId: '<string>', name: '<string>'}],
styleColors: [{id: 123, name: '<string>', customId1: '<string>', customId2: '<string>'}],
customFields: [
{
id: 123,
customId1: '<string>',
type: '<string>',
name: '<string>',
value: {id: 123, customId: '<string>', value: '<string>'},
values: [{id: 123, customId: '<string>', value: '<string>'}],
perColorValues: [
{
styleColorId: 123,
value: {id: 123, customId: '<string>', value: '<string>'},
values: [{id: 123, customId: '<string>', value: '<string>'}]
}
]
}
],
properties: ['<string>']
}
])
};
fetch('https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles', 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/styles",
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>',
'customId' => '<string>',
'description' => '<string>',
'logoResourceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'extraText' => '<string>',
'season' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'project' => '<string>'
],
'group' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>'
],
'brand' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'contactPersonId' => '<string>',
'contactPersonName' => '<string>'
],
'supplier' => [
'id' => 123,
'customId' => '<string>',
'name' => '<string>',
'contactPersonId' => '<string>',
'contactPersonName' => '<string>'
],
'categories' => [
[
'id' => 123,
'customId' => '<string>',
'name' => '<string>'
]
],
'styleColors' => [
[
'id' => 123,
'name' => '<string>',
'customId1' => '<string>',
'customId2' => '<string>'
]
],
'customFields' => [
[
'id' => 123,
'customId1' => '<string>',
'type' => '<string>',
'name' => '<string>',
'value' => [
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
],
'values' => [
[
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
]
],
'perColorValues' => [
[
'styleColorId' => 123,
'value' => [
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
],
'values' => [
[
'id' => 123,
'customId' => '<string>',
'value' => '<string>'
]
]
]
]
]
],
'properties' => [
'<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/styles"
payload := strings.NewReader("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\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("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles")
.header("Content-Type", "application/json")
.body("[\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles")
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 {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId\": \"<string>\",\n \"description\": \"<string>\",\n \"logoResourceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"extraText\": \"<string>\",\n \"season\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"project\": \"<string>\"\n },\n \"group\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"brand\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"supplier\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\",\n \"contactPersonId\": \"<string>\",\n \"contactPersonName\": \"<string>\"\n },\n \"categories\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"name\": \"<string>\"\n }\n ],\n \"styleColors\": [\n {\n \"id\": 123,\n \"name\": \"<string>\",\n \"customId1\": \"<string>\",\n \"customId2\": \"<string>\"\n }\n ],\n \"customFields\": [\n {\n \"id\": 123,\n \"customId1\": \"<string>\",\n \"type\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"perColorValues\": [\n {\n \"styleColorId\": 123,\n \"value\": {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"values\": [\n {\n \"id\": 123,\n \"customId\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ]\n }\n ],\n \"properties\": [\n \"<string>\"\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "success",
"code": "<string>",
"data": [
{
"id": 123,
"name": "<string>",
"customId": "<string>",
"state": "unpublished",
"description": "<string>",
"logo": "<string>",
"extraText": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"styleInfoUpdatedOn": "2023-11-07T05:31:56Z",
"season": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"project": "<string>"
},
"group": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"brand": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>"
},
"supplier": {
"id": 123,
"customId": "<string>",
"name": "<string>",
"contactPersonId": "<string>",
"contactPersonName": "<string>",
"country": {
"id": 123,
"customId": "<string>",
"name": "<string>"
},
"contactPerson": {
"name": "<string>",
"email": "<string>",
"status": "active"
}
},
"categories": [
{
"id": 123,
"customId": "<string>",
"name": "<string>"
}
],
"styleColors": [
{
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>",
"state": "<string>"
}
],
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
],
"perColorValues": [
{
"styleColorId": 123,
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
]
}
]
}
],
"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
Identifier of the style to update. Required on each item of a bulk update so every item names its own target.
Display name of the style. Required on full-replace PUT unless a name generator supplies it; on PATCH an omitted name keeps the current value.
Customer-defined style number. On full-replace PUT sending null clears it; on PATCH an omitted value is preserved.
Lifecycle state of the style, setting its stage in the product lifecycle. Required on both PUT and PATCH and cannot be cleared to null.
unpublished, published, deleted, delivered, cancelled, workInProgress Free-text description of the style. On full-replace PUT sending null clears it; on PATCH an omitted value is preserved.
Identifier of a file resource committed through POST /api/file-resources by this organization, used as the style header image. Must be a .jpg, .jpeg or .png.
Extra text appended to a generated style name when name auto-generation is active. On PATCH an omitted value is preserved.
The season the style belongs to. Required on full-replace PUT; on PATCH an omitted season is preserved.
Show child attributes
Show child attributes
The style group the style belongs to. Optional. On full-replace PUT sending null clears it; on PATCH an omitted value is preserved.
Show child attributes
Show child attributes
The brand the style is associated with. Required on full-replace PUT; on PATCH an omitted brand is preserved.
Show child attributes
Show child attributes
The supplier assigned to produce the style. Optional. On full-replace PUT sending null clears it; on PATCH an omitted value is preserved.
Show child attributes
Show child attributes
Full replacement set of style categories. On PUT, null or an empty array clears all and a populated list replaces all; on PATCH, an omitted value preserves the current set.
Show child attributes
Show child attributes
Full replacement set of color variants. On PUT, null or an empty array clears all and a populated list replaces all; on PATCH, an omitted value preserves the current set.
Show child attributes
Show child attributes
Custom field values. Style-level and per-color values follow independent rules: style-level values are full-replaced but not cleared by null; per-color values are upserted only for colors listed.
Show child attributes
Show child attributes
Style flags naming boolean attributes such as primary and readyForExport. On PUT, null clears all flags and a populated list becomes the exact set of active flags.
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