Skip to main content
PATCH
Update a trail's metadata by repo id

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization code flow.

Headers

If-Match
string

Optimistic concurrency: a weak ETag (W/"") from a prior read/write. If present, the request 412s when it no longer matches the trail's current ETag. Omit to apply unconditionally (backward-compatible default).

Path Parameters

repo_id
string
required

Repo id: placement ULID or public repo_

number
string
required

Trail number

Body

application/json
base
string
Minimum string length: 1
branch
string | null
ready_for_review
boolean
status
enum<string>
Available options:
open,
merged,
closed
title
string
Minimum string length: 1

Response

OK

trail
object
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"/api/v1/schemas/TrailUpdateResponseBody.json"