Skip to content

Edit a departure point

PATCH
/conditions/points/{id}
curl --request PATCH \
--url https://quikstik-core.fly.dev/conditions/points/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \
--data '{ "name": "example", "lat": 1, "lon": 1, "tz": "example" }'

Absolute-value partial update (naturally idempotent); the merged point is validated.

id
required
string format: uuid
x-tenant-id
required
string format: uuid

Tenant identifier (UUID).

Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.

Media typeapplication/json
object
name
string
>= 1 characters
lat
number
>= -90 <= 90
lon
number
>= -180 <= 180
tz
string

Example generated

{
"name": "example",
"lat": 1,
"lon": 1,
"tz": "example"
}

The point.

Media typeapplication/json
object
id
required
string format: uuid
name
required
string
lat
required
number
>= -90 <= 90
lon
required
number
>= -180 <= 180
tz
required

IANA zone

string

Example

{
"tz": "America/New_York"
}

Missing or invalid session bearer token

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

The session’s effect authority does not cover this operation

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

Expired, consumed, unknown, or unresolvable — indistinguishable by design

Media typeapplication/json
object
reason
required
string

Example generated

{
"reason": "example"
}

Renamed onto a name the tenant already uses.

Validation failed (see createConditionsPoint).

No durable backend is wired for this operation (fail-closed)

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}