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

# Make a face public or private

> A private face can be used only by the account that created it. A public face can also be used by any other account that has its face ID. Making a face public does not make it discoverable: it is not listed or searchable anywhere, and GET /faces returns only your own faces, so other accounts can use it only if you give them the ID. New faces are private.



## OpenAPI

````yaml https://api.simli.ai/openapi.yaml patch /face/{id}
openapi: 3.1.0
info:
  title: Simli
  version: 1.0.0
servers:
  - url: https://api.simli.ai/
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /face/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    patch:
      summary: Make a face public or private
      description: >-
        A private face can be used only by the account that created it. A public
        face can also be used by any other account that has its face ID. Making
        a face public does not make it discoverable: it is not listed or
        searchable anywhere, and GET /faces returns only your own faces, so
        other accounts can use it only if you give them the ID. New faces are
        private.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FacePatchRequest'
      responses:
        '200':
          description: The face, with its new visibility
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FacesResponse'
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
        '404':
          description: No such face, or it belongs to another account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FacePatchRequest:
      type: object
      additionalProperties: false
      properties:
        is_public:
          type: boolean
          description: >-
            true makes the face public (usable by any account that has its face
            ID; not listed or discoverable), false makes it private (usable only
            by the account that created it)
      required:
        - is_public
    FacesResponse:
      type: object
      additionalProperties: false
      properties:
        is_owner:
          type: boolean
          description: 'Always true: a face is answered this way to its owner only'
        is_public:
          type: boolean
          description: >-
            Whether the face is public: usable by any account that has its face
            ID, though not listed or discoverable. A private face is usable only
            by the account that created it. New faces are private; change it
            with PATCH /face/{id}
        is_deleted:
          type: boolean
        name:
          type: string
        id:
          type: string
          format: uuid
          description: Unique identifier for the face
        simli_version:
          type: integer
          description: Version of the Simli model used for the face
          example: 1
        created_at:
          type: string
          format: date-time
          description: Timestamp when the face was created
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the face was last updated
      required:
        - id
        - simli_version
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-simli-api-key

````

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