Skip to main content
PUT
/
published
/
domain
/
{slug}
Update a published domain
curl --request PUT \
  --url https://app.myhero.so/published/domain/{slug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "newSlug": "<string>",
  "newPassword": "<string>",
  "newDisabled": true,
  "newHomepage": "<string>"
}
'
{
  "data": true
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Updates the slug, password, disabled state, or homepage document for the domain identified by slug. When newSlug is provided, all documents whose domainSlug matches the old value are updated as well.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

slug
string
required
Minimum string length: 1

Body

application/json
newSlug
string
Minimum string length: 1
newPassword
string
newDisabled
boolean
newHomepage
string

Response

200 response

data
enum<boolean>
required
Available options:
true