> ## Documentation Index
> Fetch the complete documentation index at: https://snowseo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set the Blog Path

> Choose where the custom domain serves the SnowCMS blog.

Set `pathPrefix` to the path the connected custom domain serves the blog under (for example `/blog`), and `publicUrl` to the URL search engines should index. Omitted fields keep their value; `null` clears one.

Returns `400` when no custom domain is connected, or when the path or URL is not valid.


## OpenAPI

````yaml PATCH /v3/custom-domains/path-prefix
openapi: 3.0.0
info:
  title: SnowSEO API
  description: API documentation for SnowSEO
  version: 1.0.0
servers:
  - url: https://api.snowseo.com
    description: Production server
security:
  - bearerAuth: []
  - apiKey: []
externalDocs:
  url: https://snowseo.com/docs
  description: Find more info here
paths:
  /v3/custom-domains/path-prefix:
    patch:
      tags:
        - Custom Domains
      summary: Set where the custom domain's blog is served
      description: >-
        Sets the path the connected custom domain serves the blog under
        (`pathPrefix`, e.g. /blog) and the URL search engines index
        (`publicUrl`). Omitted fields keep their value; null clears one. Needs a
        connected custom domain, otherwise 400.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                teamId:
                  type: string
                pathPrefix:
                  type: string
                  nullable: true
                publicUrl:
                  type: string
                  nullable: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    additionalProperties: true
                    properties:
                      pathPrefix:
                        type: string
                        nullable: true
                      publicUrl:
                        type: string
                        nullable: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your SnowSEO API key (sk_...).
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.