Deletes a style.
curl --request DELETE \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{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 => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": {
"id": 123,
"name": "<string>",
"customId": "<string>",
"state": "<unknown>",
"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,
"name": "<string>",
"customId": "<string>"
},
"contactPerson": {
"name": "<string>",
"email": "<string>",
"status": null
}
},
"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>"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Styles
Deletes a style.
Deletes the style with the specified ID. Returns the deleted style. If the deleted style was the primary style, the sibling with the highest Id sharing the same UserDefinedId is promoted to IsPrimary = true.
DELETE
/
api
/
styles
/
{id}
Deletes a style.
curl --request DELETE \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{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 => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": {
"id": 123,
"name": "<string>",
"customId": "<string>",
"state": "<unknown>",
"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,
"name": "<string>",
"customId": "<string>"
},
"contactPerson": {
"name": "<string>",
"email": "<string>",
"status": null
}
},
"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>"
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}⌘I