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

# Put apiv2organizations websites domain



## OpenAPI

````yaml https://api.osiro.com/doc put /api/v2/organizations/{orgId}/websites/{websiteId}/domain
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, Lead verification, and analytics.
  - name: Booking
    description: A lead's cancel and reschedule of their booking, via the manage link.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
  - name: Billing
    description: Org-scoped checkouts, plans, trials and the Stripe billing portal.
  - name: Leads
    description: Org-scoped lead reads and actions.
  - name: Ad copy
    description: Org-scoped ad guidelines and Meta ad copy generation.
paths:
  /api/v2/organizations/{orgId}/websites/{websiteId}/domain:
    put:
      tags:
        - Websites
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: websiteId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkWebsiteDomainInput'
      responses:
        '200':
          description: The Website is served on the domain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteAddress'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: >-
            The domain serves another Website, a Landing page holds its root, or
            Landing pages hold Page paths
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteDomainError'
        '422':
          description: >-
            The domain is not verified, or the path for the root Landing page is
            invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteDomainError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    LinkWebsiteDomainInput:
      type: object
      properties:
        asset_id:
          type: string
          format: uuid
        root_landing_page:
          oneOf:
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - adopt
              required:
                - action
            - type: object
              properties:
                action:
                  type: string
                  enum:
                    - move
                path:
                  type: string
                  maxLength: 200
              required:
                - action
                - path
      required:
        - asset_id
    WebsiteAddress:
      type: object
      properties:
        domain:
          type: object
          nullable: true
          properties:
            asset_id:
              type: string
              format: uuid
            hostname:
              type: string
            verified:
              type: boolean
          required:
            - asset_id
            - hostname
            - verified
        subdomain:
          type: string
          nullable: true
      required:
        - domain
        - subdomain
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    WebsiteDomainError:
      allOf:
        - $ref: '#/components/schemas/ApiError'
        - type: object
          properties:
            landing_page:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                name:
                  type: string
              required:
                - id
                - name
            paths:
              type: array
              items:
                type: string

````

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