Full-replaces a single facility.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryCode": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": null,
"state": "<unknown>",
"processTypeIds": [
123
]
}
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id}"
payload = {
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryCode": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": None,
"state": "<unknown>",
"processTypeIds": [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({
name: '<string>',
address: '<string>',
zipCode: '<string>',
city: '<string>',
stateOrRegion: '<string>',
countryCode: '<string>',
latitude: 123,
longitude: 123,
mid: '<string>',
relationType: null,
state: '<unknown>',
processTypeIds: [123]
})
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{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/facilities/{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>',
'address' => '<string>',
'zipCode' => '<string>',
'city' => '<string>',
'stateOrRegion' => '<string>',
'countryCode' => '<string>',
'latitude' => 123,
'longitude' => 123,
'mid' => '<string>',
'relationType' => null,
'state' => '<unknown>',
'processTypeIds' => [
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/facilities/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\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/facilities/{id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": {
"id": "<string>",
"organizationId": 123,
"subSupplierId": "<string>",
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryId": 123,
"countryCode": "<string>",
"countryName": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": null,
"relationTypeName": "<string>",
"state": "<unknown>",
"processes": [
{
"id": 123,
"processTypeId": 123,
"processTypeName": "<string>"
}
],
"certificateCount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Facilities
Full-replaces a single facility.
Idempotent full replace. All required fields must be provided. Optional scalar fields sent as null are cleared. State ‘active’ or ‘archived’ toggles archive; state ‘deleted’ triggers a soft-delete and cascades to FacilityProcess rows. ProcessTypeIds null = keep existing; [] = rejected (at least one required); […] = replace.
PUT
/
api
/
facilities
/
{id}
Full-replaces a single facility.
curl --request PUT \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryCode": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": null,
"state": "<unknown>",
"processTypeIds": [
123
]
}
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id}"
payload = {
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryCode": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": None,
"state": "<unknown>",
"processTypeIds": [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({
name: '<string>',
address: '<string>',
zipCode: '<string>',
city: '<string>',
stateOrRegion: '<string>',
countryCode: '<string>',
latitude: 123,
longitude: 123,
mid: '<string>',
relationType: null,
state: '<unknown>',
processTypeIds: [123]
})
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{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/facilities/{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>',
'address' => '<string>',
'zipCode' => '<string>',
'city' => '<string>',
'stateOrRegion' => '<string>',
'countryCode' => '<string>',
'latitude' => 123,
'longitude' => 123,
'mid' => '<string>',
'relationType' => null,
'state' => '<unknown>',
'processTypeIds' => [
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/facilities/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\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/facilities/{id}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/facilities/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"city\": \"<string>\",\n \"stateOrRegion\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"latitude\": 123,\n \"longitude\": 123,\n \"mid\": \"<string>\",\n \"relationType\": null,\n \"state\": \"<unknown>\",\n \"processTypeIds\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": {
"id": "<string>",
"organizationId": 123,
"subSupplierId": "<string>",
"name": "<string>",
"address": "<string>",
"zipCode": "<string>",
"city": "<string>",
"stateOrRegion": "<string>",
"countryId": 123,
"countryCode": "<string>",
"countryName": "<string>",
"latitude": 123,
"longitude": 123,
"mid": "<string>",
"relationType": null,
"relationTypeName": "<string>",
"state": "<unknown>",
"processes": [
{
"id": 123,
"processTypeId": 123,
"processTypeName": "<string>"
}
],
"certificateCount": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Path Parameters
Body
application/jsontext/jsonapplication/*+json
⌘I