Bulk-updates or removes style supplier-facility selections across one or more styles.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities \
--header 'Content-Type: application/json' \
--data '
[
{
"styleId": 123,
"facilityTypeId": 123,
"supplierFacilityId": 123,
"state": null
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities"
payload = [
{
"styleId": 123,
"facilityTypeId": 123,
"supplierFacilityId": 123,
"state": None
}
]
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([{styleId: 123, facilityTypeId: 123, supplierFacilityId: 123, state: null}])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities', 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/style-supplier-facilities",
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([
[
'styleId' => 123,
'facilityTypeId' => 123,
'supplierFacilityId' => 123,
'state' => null
]
]),
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/style-supplier-facilities"
payload := strings.NewReader("[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\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/style-supplier-facilities")
.header("Content-Type", "application/json")
.body("[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"styleId": 123,
"facilityType": {
"id": 123,
"name": "<string>"
},
"facility": {
"id": 123,
"name": "<string>",
"address": "<string>",
"zipCodeOrCity": "<string>",
"country": "<string>",
"state": "<unknown>"
}
}
]
}{
"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>"
}
]
}
}StyleSupplierFacilities
Bulk-updates or removes style supplier-facility selections across one or more styles.
Bulk PUT with all-or-nothing semantics. Each item identifies a (styleId, facilityTypeId) selection; state=“deleted” removes that selection, otherwise it is created if absent. Capped at 200 items per request.
PUT
/
api
/
style-supplier-facilities
Bulk-updates or removes style supplier-facility selections across one or more styles.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities \
--header 'Content-Type: application/json' \
--data '
[
{
"styleId": 123,
"facilityTypeId": 123,
"supplierFacilityId": 123,
"state": null
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities"
payload = [
{
"styleId": 123,
"facilityTypeId": 123,
"supplierFacilityId": 123,
"state": None
}
]
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([{styleId: 123, facilityTypeId: 123, supplierFacilityId: 123, state: null}])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities', 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/style-supplier-facilities",
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([
[
'styleId' => 123,
'facilityTypeId' => 123,
'supplierFacilityId' => 123,
'state' => null
]
]),
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/style-supplier-facilities"
payload := strings.NewReader("[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\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/style-supplier-facilities")
.header("Content-Type", "application/json")
.body("[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/style-supplier-facilities")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"styleId\": 123,\n \"facilityTypeId\": 123,\n \"supplierFacilityId\": 123,\n \"state\": null\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"styleId": 123,
"facilityType": {
"id": 123,
"name": "<string>"
},
"facility": {
"id": 123,
"name": "<string>",
"address": "<string>",
"zipCodeOrCity": "<string>",
"country": "<string>",
"state": "<unknown>"
}
}
]
}{
"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>"
}
]
}
}⌘I