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

# Set or update SIP inbound config

> Upsert the project's SIP inbound configuration. On first call (no active config), `sipUri` is required and the project's voice platform must be enabled. On subsequent calls, any non-empty subset patches the existing config — omitted fields are preserved, explicit `null` for `username`/`password` clears them. Resulting state must satisfy: `username` and `password` are either both set or both null (half-credentials are rejected). Requires Authorization: Basic base64(projectId:projectSecret).



## OpenAPI

````yaml https://spectrum.photon.codes/openapi/json patch /projects/{projectId}/voice/sip-inbound/
openapi: 3.1.0
info:
  title: Spectrum Cloud External API
  description: Client-facing API for Spectrum Cloud.
  version: 1.0.0
servers:
  - url: https://spectrum.photon.codes
security: []
tags:
  - name: billing
    description: Billing and subscription operations
  - name: imessage
    description: iMessage platform operations
  - name: lines
    description: Phone line enumeration across platforms
  - name: platforms
    description: Platform management operations
  - name: users
    description: User operations
  - name: voice
    description: Voice platform operations
  - name: webhooks
    description: Webhook registration for receiving Spectrum events
  - name: whatsapp-business
    description: WhatsApp Business platform operations
  - name: slack
    description: Slack platform operations
paths:
  /projects/{projectId}/voice/sip-inbound/:
    patch:
      tags:
        - voice
      summary: Set or update SIP inbound config
      description: >-
        Upsert the project's SIP inbound configuration. On first call (no active
        config), `sipUri` is required and the project's voice platform must be
        enabled. On subsequent calls, any non-empty subset patches the existing
        config — omitted fields are preserved, explicit `null` for
        `username`/`password` clears them. Resulting state must satisfy:
        `username` and `password` are either both set or both null
        (half-credentials are rejected). Requires Authorization: Basic
        base64(projectId:projectSecret).
      operationId: patchProjectsByProjectIdVoiceSip-inbound
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sipUri:
                  type: string
                  pattern: '^sips?:'
                username:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                password:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
              additionalProperties: false
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sipUri:
                  type: string
                  pattern: '^sips?:'
                username:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                password:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
              additionalProperties: false
          multipart/form-data:
            schema:
              type: object
              properties:
                sipUri:
                  type: string
                  pattern: '^sips?:'
                username:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
                password:
                  anyOf:
                    - type: string
                      minLength: 1
                    - type: 'null'
              additionalProperties: false
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  succeed:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      configId:
                        type: string
                      projectId:
                        type: string
                      sipUri:
                        type: string
                      username:
                        anyOf:
                          - type: string
                          - type: 'null'
                      hasPassword:
                        type: boolean
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                    required:
                      - configId
                      - projectId
                      - sipUri
                      - username
                      - hasPassword
                      - createdAt
                      - updatedAt
                    additionalProperties: false
                required:
                  - succeed
                  - data
                additionalProperties: false

````