Sites

List all the sites created in an organization

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

spacestringOptional

Identifier of the space to filter the sites by

titlestringOptional

Filter sites by their title

publishedbooleanOptional

Filter sites by their published status

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites

Create a site in an organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Body
typestring · enumOptional

The type of the site, defaults to Basic

Possible values:
titlestring · min: 2 · max: 128Optional

Title of the site

visibilitystring · enumOptional

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
spacesone ofOptional
string[]Optional

ID of spaces to be added to the site

or
string · enumOptional

Create a new space associated to the site

Possible values:
Responses
post
/orgs/{organizationId}/sites

Preview checkout information upon publishing a site in the organization.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

Query parameters
planstring · enumRequired

The type of the site

Possible values:
Responses
chevron-right
200

OK

application/json
Responseone of

A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.

or
or
or
or
get
/orgs/{organizationId}/sites/publishing/checkout

Get an organization site by its ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}

Delete a site in an organization

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
delete
/orgs/{organizationId}/sites/{siteId}

No content

Update a site in an organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
titlestring · min: 2 · max: 128Optional

Title of the site

visibilitystring · enumOptional

The visibility setting of the site determines the audience of the site.

  • public: Anyone can access the site, and the site is indexed by search engines.
  • unlisted: Anyone can access the site, and the site is not indexed by search engines
  • share-link: Anyone with a secret token in the url can access the site.
  • visitor-auth: Anyone authenticated through a JWT token can access the site.
Possible values:
basenamestring · min: 1 · max: 100Optional

Basename for the site. For e.g. api

defaultSiteSpacestringOptional

ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.

defaultSiteSectionstringOptional

ID of the site-section to be used as the default.

proxyone ofOptional

Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like https://company.com/docs. Use null to remove the proxy.

string · max: 512Optional

Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.

Pattern: ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
or
string · enum | nullableOptionalPossible values:
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}

Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/published

Publishes the site to the audience defined in the site's visibility setting.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

Site published successfully

application/json
Responseone of
or
post
/orgs/{organizationId}/sites/{siteId}/publish

Unpublishes the site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

Site unpublished successfully

application/json
post
/orgs/{organizationId}/sites/{siteId}/unpublish
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/share-links

Create a share link in a site

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
namestring · max: 50Required

Name of the share link

Responses
post
/orgs/{organizationId}/sites/{siteId}/share-links
delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

shareLinkIdstringRequired

The unique id of the share link

Responses
delete
/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}

No content

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

shareLinkIdstringRequired

The unique id of the share link

Body
activebooleanOptional
namestring · max: 50Optional

Name of the share link

Responses
chevron-right
200

The site share link has been updated

application/json
patch
/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}

Get the structure of a site which includes site-sections and site-spaces

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

Responses
chevron-right
200

OK

application/json
Responseone of
or
get
/orgs/{organizationId}/sites/{siteId}/structure

Preview an upgrade to a site plan, returning checkout information.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
planstring · enumRequired

The type of the site

Possible values:
Responses
chevron-right
200

OK

application/json
Responseone of

A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.

or
or
or
or
get
/orgs/{organizationId}/sites/{siteId}/plan

Update the site plan.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
successReturnURLstringOptional

The app screen URL to bring the user back to after a successful checkout.

cancelReturnURLstringOptional

The app screen URL to bring the user back to after a canceled checkout.

Body
planstring · enumRequired

The type of the site

Possible values:
intervalstring · enumOptional

Desired interval for new subscriptions. Defaults to the existing billing interval.

Possible values:
reasonstringOptional

Reason that triggered the billing upgrade

Responses
chevron-right
200

OK

application/json
Responseone of
or
or
post
/orgs/{organizationId}/sites/{siteId}/plan

Get the publishing authentication settings for a site.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/publishing/auth

Update the publishing authentication settings for a site.

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
anyOptional
or
and
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/publishing/auth

Regenerate the publishing authentication settings for a site. This will re-generate the private key.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

OK

application/json
post
/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate

Get a URL to preview the published content of a site. The URL will be valid for 1 hour.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
siteSpacestringOptional

ID of the site-space to preview. If not provided, the default site-space will be used.

claimsstringOptional

Rison encoded string of attributes/assertions about the visitor for which we want to preview the site.

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/publishing/preview

Get the customization configuration for a site.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
unmaskedbooleanOptionalDeprecated

(Deprecated) Use the getRawCustomizationSettingsById internal endpoint.

Default: false
Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/customization

Update the customization configuration for a site.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
titlestring · min: 2 · max: 128Optional

Title to use for the published site. If not defined, it'll fallback to the default content title.

faviconone ofRequired
or
or
objectOptional
Responses
chevron-right
200

OK

application/json
put
/orgs/{organizationId}/sites/{siteId}/customization

Get the raw customization settings of a site.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/customization/raw

List all the site spaces under a site in an organization

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

defaultbooleanOptional

If true, only the default site space will be returned. If false, only the non-default site spaces are returned. If undefined, all site spaces are returned.

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/site-spaces

Add a space to a site in an organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
spaceIdstringRequired

ID of the space

sectionIdstringOptional

ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections.

Responses
post
/orgs/{organizationId}/sites/{siteId}/site-spaces

Add a section group to a site in an organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
titlestring · min: 1 · max: 100Required

Title of the site section group

sectionsstring[]Optional

IDs of the sections to be added to the section group

Responses
post
/orgs/{organizationId}/sites/{siteId}/section-groups

Delete a section group on a site in an organization

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionGroupIdstringRequired

The unique id of the site group

Responses
delete
/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}

No content

Update a section group on a site in an organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionGroupIdstringRequired

The unique id of the site group

Body
titlestring · min: 1 · max: 100Optional

Title of the site section group

iconone ofOptional
string · icon · max: 50Optional

Name of the icon

Example: gear
or
string · enum | nullableOptionalPossible values:
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}

List all the site sections under a site in an organization

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/sections

Add a section to a site in an organization

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
spaceIdstringRequired

ID of the space to be added to the section as a site space variant

titlestring · max: 64Optional

Title of the section

Responses
post
/orgs/{organizationId}/sites/{siteId}/sections

Delete a section on a site in an organization

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Responses
delete
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}

No content

Update a section on a site in an organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Body
titlestring · min: 2 · max: 128Optional

Title of the site section

pathstring · min: 1 · max: 100Optional

Path to the section on the site

defaultSiteSpacestringOptional

ID of the site-space to be used as the default in this section.

conditionone ofOptional

Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.

string · min: 1 · max: 1024Optional
or
string · enum | nullableOptionalPossible values:
iconone ofOptional
string · icon · max: 50Optional

Name of the icon

Example: gear
or
string · enum | nullableOptionalPossible values:
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}

Delete a space on a site in an organization

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Responses
delete
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}

No content

Update a space on a site in an organization

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Body
pathstring · min: 1 · max: 100Optional

Path to the space on the site

conditionone ofOptional

Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.

string · min: 1 · max: 1024Optional
or
string · enum | nullableOptionalPossible values:
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}

Get the customization configuration for a site space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Query parameters
unmaskedbooleanOptionalDeprecated

(Deprecated) Use the getRawCustomizationSettingsById internal endpoint.

Default: false
Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization

Removes the customization configuration for a site space.

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Responses
delete
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization

No content

Override the customization configuration for a site space.

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Body

The settings that overrides the site customization settings.

titleone ofOptional

Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title.

string · min: 2 · max: 128Optional

Title of the site

or
string · enum | nullableOptionalPossible values:
faviconone ofOptional

The favicon to use. Set to null to reset the override.

or
or
object | nullableOptional
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization

Get the raw customization settings of a site space.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Responses
chevron-right
200

OK

application/json
get
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw

Create a page feedback by a visitor on a site.

put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

pageIdstringRequired

The unique id of the page

visitorIdstringRequired

The id of the visitor

Body
ratingstring · enumRequiredPossible values:
Responses
chevron-right
200

Feedback updated

application/json
put
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}

Move a site section to a new position in the site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSectionIdstringRequired

The unique id of the section within a site

Body
Responses
chevron-right
200

Site section moved

application/json
post
/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move

Move a site space to a new position in the site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteSpaceIdstringRequired

The unique id of the site-space relationship

Body
Responses
chevron-right
200

Site space moved

application/json
post
/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move

Track events in a site.

post

Track events in a site.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
Responses
post
/orgs/{organizationId}/sites/{siteId}/insights/events

No content

Query and aggregate events in a site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
rangestring · enumRequiredPossible values:
Responses
chevron-right
200

Aggregated events in the site.

application/json
post
/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate
200

Aggregated events in the site.

Enable, disable, or submit for review Ads on a site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
statusstring · enumOptionalPossible values:
topicstring · enumOptional

Topic of the content

Possible values:
Responses
post
/orgs/{organizationId}/sites/{siteId}/ads

No content

List the redirects configured for a site.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
pagestringOptional

Identifier of the page results to fetch.

limitnumber · max: 1000Optional

The number of results per page

Responses
chevron-right
200

The list of redirects for the site.

application/json
get
/orgs/{organizationId}/sites/{siteId}/redirects

Configure a redirect explicitly for a site.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Body
sourcestring · max: 512Required

The source path to redirect from.

Pattern: ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
destinationone ofRequired
or
or
Responses
post
/orgs/{organizationId}/sites/{siteId}/redirects

Delete a redirect for a site

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteRedirectIdstringRequired

The unique id of the site redirect

Responses
delete
/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}

No content

Update a redirect for a site

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

siteRedirectIdstringRequired

The unique id of the site redirect

Body
sourcestring · max: 512Optional

The source path to redirect from.

Pattern: ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
destinationone ofOptional
or
or
Responses
chevron-right
200

OK

application/json
patch
/orgs/{organizationId}/sites/{siteId}/redirects/{siteRedirectId}

Resolve a redirect in a site by its source path.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequired

The unique id of the organization

siteIdstringRequired

The unique id of the site

Query parameters
shareKeystringOptional

For sites published via share-links, the share key is useful to resolve published URLs.

sourcestring · max: 512Required

The source path to redirect from.

Pattern: ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
Responses
chevron-right
200

The redirect was resolved successfully.

application/json
get
/orgs/{organizationId}/sites/{siteId}/redirect

Last updated

Was this helpful?