Skip to main content
PATCH
/
v1
/
nodes
/
{id}
/
operating-hours
Update operating hours
curl --request PATCH \
  --url http://localhost:3000/v1/nodes/{id}/operating-hours \
  --header 'Content-Type: application/json' \
  --data '
{
  "operating_hours": {
    "periods": [
      {
        "open": {
          "day": 3,
          "time": "<string>"
        },
        "close": {
          "day": 3,
          "time": "<string>"
        }
      }
    ]
  }
}
'
{
  "success": true,
  "node": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "code": "<string>",
    "is_active": true,
    "timezone": "<string>",
    "sweep_cutoff_minutes": 123,
    "sweep_cutoff_time": "<string>",
    "retailer_location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "logo_url": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "operating_hours": "<unknown>"
  }
}

Path Parameters

id
string<uuid>
required

Body

application/json
operating_hours
object
required

Response

200 - application/json

Updated node

success
boolean
required
node
object
required