Median

PATCH /integrations/repos/{owner}/{repo}

Updated Oct 1, 20261 minute read

Set the published address

Where a mirrored repository's documents are published, so the agent hands a customer a link rather than a paragraph. The hunt for the matching pages runs as soon as this lands.

Part of Integrations.

Parameters

NameInTypeRequiredDescription
ownerpathstringYes
repopathstringYes

Request body

application/json, required.

FieldTypeRequiredDescription
publishedAtstringYes

Responses

StatusDescription
200The address, as it was normalized.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
urlstringNo

Example request

curl -X PATCH https://api.median.sh/v1/integrations/repos/owner/repo \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc