Skip to main content
PATCH
/
v1
/
nodes
/
{id}
Update node
curl --request PATCH \
  --url http://localhost:3000/v1/nodes/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "operating_hours": {
    "periods": [
      {
        "open": {
          "day": 3,
          "time": "<string>"
        },
        "close": {
          "day": 3,
          "time": "<string>"
        }
      }
    ]
  },
  "timezone": "<string>",
  "sweep_cutoff_minutes": 240,
  "sweep_cutoff_time": "<string>",
  "logo_url": "<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
name
string
Required string length: 1 - 200
operating_hours
object
timezone
string
sweep_cutoff_minutes
integer
Required range: 0 <= x <= 480
sweep_cutoff_time
string
logo_url
string<uri> | null

Response

200 - application/json

Updated node

success
boolean
required
node
object
required