openapi: 3.2.0 info: description: API Documentation title: Control-plane UI User VCS Token Controller API version: '1.0' servers: - url: https://facetsdemo.console.facets.cloud description: Generated server url security: - basicAuth: [] tags: - name: ui-user-vcs-token-controller paths: /cc-ui/v1/user-token: get: operationId: getAll responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/UserVCSTokenResponse' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-vcs-token-controller summary: Get all x-summary-source: derived post: operationId: add requestBody: content: application/json: schema: $ref: '#/components/schemas/UserVCSTokenRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserVCSTokenResponse' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-vcs-token-controller summary: Add x-summary-source: derived put: operationId: update requestBody: content: application/json: schema: $ref: '#/components/schemas/UserVCSTokenRequest' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserVCSTokenResponse' description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-vcs-token-controller summary: Update x-summary-source: derived /cc-ui/v1/user-token/{id}: delete: operationId: delete parameters: - in: path name: id required: true schema: type: string responses: '200': description: OK '400': content: application/json: schema: oneOf: - $ref: '#/components/schemas/ErrorDetails' - $ref: '#/components/schemas/GithubAppPermissionsPendingErrorDetails' description: Bad Request '403': content: application/json: schema: type: string description: Forbidden '404': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Not Found '405': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Method Not Allowed '409': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Conflict '500': content: application/json: schema: $ref: '#/components/schemas/ErrorDetails' description: Internal Server Error tags: - ui-user-vcs-token-controller summary: Delete x-summary-source: derived components: schemas: UserVCSTokenRequest: required: - hostName - personalAccessToken - userName type: object properties: hostName: type: string id: type: string personalAccessToken: type: string userName: type: string GithubAppPermissionsPendingErrorDetails: type: object properties: approvalUrl: type: string code: type: string errorCode: type: string message: type: string missingPermissions: type: array items: type: string ErrorDetails: type: object properties: code: type: string message: type: string UserVCSTokenResponse: type: object properties: hostName: type: string id: type: string userId: type: string userName: type: string securitySchemes: basicAuth: description: Basic Authentication scheme: basic type: http