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

# Set Trust Center listing for the app

> Trust Center listing is per app. The flag is written to every non-deleted CVM of the app's project, so toggling it here applies to the whole app, and Trust Center re-indexes the app.



## OpenAPI

````yaml /openapi.json patch /api/v1/cvms/{cvm_id}/listed
openapi: 3.1.0
info:
  title: Phala Cloud API
  version: 0.1.0
servers:
  - url: https://cloud-api.phala.com
security: []
tags:
  - name: CVMs
    description: Confidential Virtual Machine (CVM) lifecycle management on Phala Network
    x-mint:
      href: https://cloud.phala.network/api-reference/cvms
  - name: Apps
    description: App template management and CVM deployment from app blueprints
    x-mint:
      href: https://cloud.phala.network/api-reference/apps
  - name: Webhooks
    description: Manage webhook endpoints and monitor delivery history
    x-mint:
      href: https://cloud.phala.network/api-reference/webhooks
  - name: SSH Keys
    description: SSH public key management for CVM access
    x-mint:
      href: https://cloud.phala.network/api-reference/ssh-keys
  - name: KMS
    description: >-
      Key Management Service — key derivation, on-chain anchoring, and
      inspection
    x-mint:
      href: https://cloud.phala.network/api-reference/kms
  - name: Instance Types
    description: Available hardware configurations for CVM deployment
    x-mint:
      href: https://cloud.phala.network/api-reference/instance-types
  - name: Attestations
    description: Remote attestation and TEE verification endpoints
    x-mint:
      href: https://cloud.phala.network/api-reference/attestations
paths:
  /api/v1/cvms/{cvm_id}/listed:
    patch:
      tags:
        - CVMs
      summary: Set Trust Center listing for the app
      description: >-
        Trust Center listing is per app. The flag is written to every
        non-deleted CVM of the app's project, so toggling it here applies to the
        whole app, and Trust Center re-indexes the app.
      operationId: handle_update_cvm_listed_api_v1_cvms__cvm_id__listed_patch
      parameters:
        - name: cvm_id
          in: path
          required: true
          schema:
            type: string
            title: Cvm Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Body_handle_update_cvm_listed_api_v1_cvms__cvm_id__listed_patch
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VM'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_handle_update_cvm_listed_api_v1_cvms__cvm_id__listed_patch:
      properties:
        listed:
          type: boolean
          title: Listed
      type: object
      required:
        - listed
      title: Body_handle_update_cvm_listed_api_v1_cvms__cvm_id__listed_patch
    VM:
      properties:
        id:
          anyOf:
            - type: integer
            - type: string
              pattern: ^cvm_.+
              format: hashid
              title: HashedId[cvms]
              description: A hashed identifier that maps to an internal database ID
              examples:
                - cvm_0123abcd
          title: Id
        name:
          type: string
          title: Name
        status:
          type: string
          title: Status
        teepod_id:
          type: integer
          title: Teepod Id
        teepod:
          anyOf:
            - $ref: '#/components/schemas/TeepodMeta'
            - type: 'null'
        user_id:
          anyOf:
            - type: integer
            - type: string
              pattern: ^usr_.+
              format: hashid
              title: HashedId[users]
              description: A hashed identifier that maps to an internal database ID
              examples:
                - usr_0123abcd
            - type: 'null'
          title: User Id
        app_id:
          type: string
          title: App Id
        vm_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Vm Uuid
        instance_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance Id
        app_url:
          anyOf:
            - type: string
            - type: 'null'
          title: App Url
        base_image:
          anyOf:
            - type: string
            - type: 'null'
          title: Base Image
        vcpu:
          type: integer
          title: Vcpu
        memory:
          type: integer
          title: Memory
        disk_size:
          type: integer
          title: Disk Size
        manifest_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Manifest Version
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
        runner:
          anyOf:
            - type: string
            - type: 'null'
          title: Runner
        docker_compose_file:
          anyOf:
            - type: string
            - type: 'null'
          title: Docker Compose File
        features:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Features
        created_at:
          type: string
          format: date-time
          title: Created At
        encrypted_env_pubkey:
          anyOf:
            - type: string
            - type: 'null'
          title: Encrypted Env Pubkey
      type: object
      required:
        - id
        - name
        - status
        - teepod_id
        - app_id
        - vcpu
        - memory
        - disk_size
        - created_at
      title: VM
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TeepodMeta:
      properties:
        id:
          type: integer
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: TeepodMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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