Replace opening hours
curl --request PUT \
--url https://server.chataigne.ai/v1/locations/{location_id}/opening_hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
'import requests
url = "https://server.chataigne.ai/v1/locations/{location_id}/opening_hours"
payload = {
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
delivery: {
monday: [{from: '09:00', to: '22:00'}],
tuesday: [{from: '09:00', to: '22:00'}],
wednesday: [{from: '09:00', to: '22:00'}],
thursday: [{from: '09:00', to: '22:00'}],
friday: [{from: '09:00', to: '22:00'}],
saturday: [{from: '09:00', to: '22:00'}],
sunday: [{from: '09:00', to: '22:00'}]
},
pickup: {
monday: [{from: '09:00', to: '22:00'}],
tuesday: [{from: '09:00', to: '22:00'}],
wednesday: [{from: '09:00', to: '22:00'}],
thursday: [{from: '09:00', to: '22:00'}],
friday: [{from: '09:00', to: '22:00'}],
saturday: [{from: '09:00', to: '22:00'}],
sunday: [{from: '09:00', to: '22:00'}]
}
})
};
fetch('https://server.chataigne.ai/v1/locations/{location_id}/opening_hours', 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://server.chataigne.ai/v1/locations/{location_id}/opening_hours",
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([
'delivery' => [
'monday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'tuesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'wednesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'thursday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'friday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'saturday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'sunday' => [
[
'from' => '09:00',
'to' => '22:00'
]
]
],
'pickup' => [
'monday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'tuesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'wednesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'thursday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'friday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'saturday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'sunday' => [
[
'from' => '09:00',
'to' => '22:00'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://server.chataigne.ai/v1/locations/{location_id}/opening_hours"
payload := strings.NewReader("{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://server.chataigne.ai/v1/locations/{location_id}/opening_hours")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.chataigne.ai/v1/locations/{location_id}/opening_hours")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "opening_hours",
"location_id": "<string>",
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}Location settings
Replace opening hours
PUT
/
v1
/
locations
/
{location_id}
/
opening_hours
Replace opening hours
curl --request PUT \
--url https://server.chataigne.ai/v1/locations/{location_id}/opening_hours \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
'import requests
url = "https://server.chataigne.ai/v1/locations/{location_id}/opening_hours"
payload = {
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
delivery: {
monday: [{from: '09:00', to: '22:00'}],
tuesday: [{from: '09:00', to: '22:00'}],
wednesday: [{from: '09:00', to: '22:00'}],
thursday: [{from: '09:00', to: '22:00'}],
friday: [{from: '09:00', to: '22:00'}],
saturday: [{from: '09:00', to: '22:00'}],
sunday: [{from: '09:00', to: '22:00'}]
},
pickup: {
monday: [{from: '09:00', to: '22:00'}],
tuesday: [{from: '09:00', to: '22:00'}],
wednesday: [{from: '09:00', to: '22:00'}],
thursday: [{from: '09:00', to: '22:00'}],
friday: [{from: '09:00', to: '22:00'}],
saturday: [{from: '09:00', to: '22:00'}],
sunday: [{from: '09:00', to: '22:00'}]
}
})
};
fetch('https://server.chataigne.ai/v1/locations/{location_id}/opening_hours', 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://server.chataigne.ai/v1/locations/{location_id}/opening_hours",
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([
'delivery' => [
'monday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'tuesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'wednesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'thursday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'friday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'saturday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'sunday' => [
[
'from' => '09:00',
'to' => '22:00'
]
]
],
'pickup' => [
'monday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'tuesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'wednesday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'thursday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'friday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'saturday' => [
[
'from' => '09:00',
'to' => '22:00'
]
],
'sunday' => [
[
'from' => '09:00',
'to' => '22:00'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://server.chataigne.ai/v1/locations/{location_id}/opening_hours"
payload := strings.NewReader("{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://server.chataigne.ai/v1/locations/{location_id}/opening_hours")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://server.chataigne.ai/v1/locations/{location_id}/opening_hours")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"delivery\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n },\n \"pickup\": {\n \"monday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"tuesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"wednesday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"thursday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"friday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"saturday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ],\n \"sunday\": [\n {\n \"from\": \"09:00\",\n \"to\": \"22:00\"\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "opening_hours",
"location_id": "<string>",
"delivery": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
},
"pickup": {
"monday": [
{
"from": "09:00",
"to": "22:00"
}
],
"tuesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"wednesday": [
{
"from": "09:00",
"to": "22:00"
}
],
"thursday": [
{
"from": "09:00",
"to": "22:00"
}
],
"friday": [
{
"from": "09:00",
"to": "22:00"
}
],
"saturday": [
{
"from": "09:00",
"to": "22:00"
}
],
"sunday": [
{
"from": "09:00",
"to": "22:00"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "<string>",
"request_id": "req_8f2c…",
"param": "<string>",
"details": {}
}
}Authorizations
Location/organization API key.
Path Parameters
Body
application/json