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

# Reorder controls in a Trust Center control category

> Reorders controls within a control category on a Trust Center. The
request body must contain the complete set of control IDs in the
category in the desired order.



## OpenAPI

````yaml /reference/manage-vanta.json put /trust-centers/{slugId}/control-categories/{categoryId}/controls/order
openapi: 3.0.0
info:
  title: Manage Vanta
  version: 1.0.0
  description: >-
    The REST API lets customers query and mutate Vanta's data. Use this API to
    automate bulk actions, query data for custom workflows and dashboards, and
    bolster your security operations


    **Note for Vanta Gov (FedRAMP) customers:** Select `Vanta Gov (FedRAMP)`
    from the server dropdown to issue requests against
    `https://api.vanta-gov.com`. The OAuth token URL shown below defaults to the
    commercial host — replace it with `https://api.vanta-gov.com/oauth/token`.
  termsOfService: https://www.vanta.com/terms
  license:
    name: UNLICENSED
  contact:
    name: API Support
    url: https://help.vanta.com/
    email: support@vanta.com
servers:
  - url: https://api.vanta.com/v1
    description: Vanta (Commercial)
  - url: https://api.vanta-gov.com/v1
    description: Vanta Gov (FedRAMP)
security: []
paths:
  /trust-centers/{slugId}/control-categories/{categoryId}/controls/order:
    put:
      tags:
        - Trust Centers
      summary: Reorder controls in a Trust Center control category
      description: |-
        Reorders controls within a control category on a Trust Center. The
        request body must contain the complete set of control IDs in the
        category in the desired order.
      operationId: UpsertTrustCenterControlsInCategoryOrder
      parameters:
        - in: path
          name: slugId
          required: true
          schema:
            type: string
        - in: path
          name: categoryId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReorderTrustCenterControlsInput'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustCenterControlCategory'
              examples:
                Example 1:
                  value:
                    id: 93d69894dd525f806d7e5c48
                    name: Category name
                    visibility: PUBLIC
                    statusVisibilityOverride: null
      security:
        - bearerAuth: []
components:
  schemas:
    ReorderTrustCenterControlsInput:
      properties:
        orderedControlIds:
          items:
            type: string
          type: array
          description: >-
            Ordered list of all control IDs in the category representing the
            desired order.
      required:
        - orderedControlIds
      type: object
      additionalProperties: false
    TrustCenterControlCategory:
      properties:
        id:
          type: string
          description: Unique identifier for the control category.
        name:
          type: string
          description: Name of the category.
        visibility:
          $ref: '#/components/schemas/TrustCenterControlVisibility'
          description: >-
            Visibility of the category's controls on the Trust Center.
            `SHAREABLE`

            categories are only visible to accounts with a matching access
            grant.
        statusVisibilityOverride:
          allOf:
            - $ref: '#/components/schemas/TrustCenterControlVisibilityMode'
          nullable: true
          description: |-
            Per-category status-visibility override. `null` means the category
            follows the Trust Center's global default.
      required:
        - id
        - name
        - visibility
        - statusVisibilityOverride
      type: object
      additionalProperties: false
    TrustCenterControlVisibility:
      type: string
      enum:
        - PUBLIC
        - SHAREABLE
      description: >-
        Visibility of a control category's controls on the Trust Center.

        `SHAREABLE` categories are only visible to accounts with a matching
        access

        grant.
    TrustCenterControlVisibilityMode:
      type: string
      enum:
        - SHOW_OK_ONLY
        - SHOW_OK_AND_UNMAPPED
        - SHOW_ALL_WITHOUT_STATUS
        - SHOW_ALL_WITH_STATUS
      description: >-
        Which controls a Trust Center displays, and whether their pass/fail
        status is

        shown. Set as the Trust Center's global default, or per category to
        override

        that default.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [Reorder Trust Center control categories](/api-reference/trust-centers/reorder-trust-center-control-categories.md)
- [Reorder Trust Center resource categories](/api-reference/trust-centers/reorder-trust-center-resource-categories.md)
- [Add Trust Center control](/api-reference/trust-centers/add-trust-center-control.md)
- [Get Trust Center control](/api-reference/trust-centers/get-trust-center-control.md)
- [Delete Trust Center control category](/api-reference/trust-centers/delete-trust-center-control-category.md)
