get:
  tags:
    - categories
  summary: get a category's privilege set
  description: This operation retrieves a category's privilege set.
  parameters:
    - in: path
      name: cid
      schema:
        type: string
      required: true
      description: a valid category id, `0` for global privileges, `admin` for admin privileges
      example: 1
  responses:
    '200':
      description: Category privileges successfully retrieved
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                $ref: ../../../components/schemas/Status.yaml#/Status
              response:
                type: object
                properties:
                  labelData:
                    type: array
                    items:
                      type: object
                      properties:
                        label:
                          type: string
                          description: the name of the privilege displayed in the ACP dashboard
                        type:
                          type: string
                          description: type of the privilege (one of viewing, posting, moderation or other)
                  users:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        nameEscaped:
                          type: string
                        privileges:
                          type: object
                          additionalProperties:
                            type: boolean
                            description: A set of privileges with either true or false
                        isPrivate:
                          type: boolean
                        isSystem:
                          type: boolean
                  groups:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        nameEscaped:
                          type: string
                        privileges:
                          type: object
                          additionalProperties:
                            type: boolean
                            description: A set of privileges with either true or false
                        types:
                          type: object
                          description: Each privilege will have a key in this object, the value will be the type of the privilege (viewing, posting, moderation or other)
                        isPrivate:
                          type: boolean
                        isSystem:
                          type: boolean
                  keys:
                    type: object
                    properties:
                      users:
                        type: array
                        items:
                          type: string
                          description: "Privilege name"
                      groups:
                        type: array
                        items:
                          type: string
                          description: "Privilege name"
                  columnCountUserOther:
                    type: number
                    description: "The number of additional user privileges added by plugins"
                  columnCountGroupOther:
                    type: number
                    description: "The number of additional group privileges added by plugins"