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

# Actualizar URL del proyecto

> Cambia la ruta de un proyecto, cambia de subdominio o apúntalo a un dominio personalizado.



## OpenAPI

````yaml PUT /projects/{slug}/url
openapi: 3.1.0
info:
  title: Faces API
  version: '1.0'
  description: >-
    Faces API for creating and managing presentations. Generate presentations
    from prompts, or read and write individual slides. Each slide is a React
    component (face.tsx) with content blocks (face.content.json) and editor
    controls (face.controls.json).
servers:
  - url: https://faces.app/api/v1
    description: API v1
security:
  - bearerAuth: []
paths:
  /projects/{slug}/url:
    put:
      tags:
        - Publishing
      summary: Update the project URL
      description: >-
        Change the path, switch subdomains, or point the project at a custom
        domain. Provide exactly one of userSubdomainId or userDomainId. Requires
        a paid plan.
      operationId: updateProjectUrl
      parameters:
        - schema:
            type: string
          required: true
          name: slug
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                path:
                  type: string
                  description: The path segment after the hostname.
                userSubdomainId:
                  type: string
                  description: ID of the subdomain to host on.
                userDomainId:
                  type: string
                  description: ID of the custom domain to host on.
              required:
                - path
      responses:
        '200':
          description: URL updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  current:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - subdomain
                          - domain
                      hostname:
                        type: string
                      path:
                        type: string
                      subdomainId:
                        type: string
                      domainId:
                        type: string
                      projectSubdomainId:
                        type: string
                      projectDomainId:
                        type: string
                    required:
                      - type
                      - hostname
                      - path
                required:
                  - success
                  - current
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Paid plan required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: URL already in use
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with "faces_" prefix. Create one at Settings > Developers.

````