openapi: 3.0.0 info: title: Capmo REST Organisation Companies Project Permission Sets API description: External REST API Documentation for Capmo version: '1.0' contact: {} servers: - url: https://api.capmo.de description: Production tags: - name: Project Permission Sets description: '' paths: /api/v1/projects/{projectId}/permission-sets: get: description: This can be used to list all permission sets available within a project. Use the returned IDs as `permission_set_id` when inviting a project member. operationId: getProjectPermissionSets parameters: - name: projectId required: true in: path schema: type: string - name: Request-Id in: header description: The HTTP `Request-Id` request header is an optional and unofficial HTTP header, used to trace individual HTTP requests from the client to the server and back again. It allows the client and server to correlate each HTTP request. If not provided by the client, the server should generate a unique request ID and include it in the response. schema: {} responses: '200': description: The project permission sets have been successfully retrieved. content: application/json: schema: type: object properties: message: type: string example: Success data: type: array items: $ref: '#/components/schemas/ReadProjectPermissionSetDto' '400': description: Bad request, Invalid input content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#bad-request message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: BAD_REQUEST message: type: string example: Bad request '401': description: Unauthorized content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#unauthorized message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: UNAUTHORIZED message: type: string example: Unauthorized '403': description: Forbidden content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#forbidden message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: FORBIDDEN message: type: string example: Forbidden '404': description: Object not found content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#not-found message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: NOT_FOUND message: type: string example: Object not found '409': description: Conflict content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#conflict message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: CONFLICT message: type: string example: Conflict '500': description: Internal server error content: application/json: schema: type: object properties: type: type: string example: https://capmoapi.readme.io/reference/errors#internal-server-error message: type: string example: An error occurred errors: type: array items: type: object properties: code: type: string example: INTERNAL_SERVER_ERROR message: type: string example: Internal server error security: - CapmoAuth: [] summary: '' tags: - Project Permission Sets components: schemas: ReadProjectPermissionSetDto: type: object properties: id: type: string example: 123e4567-e89b-12d3-a456-426614174000 description: The unique identifier of the permission set. name: type: string example: Default description: The name of the permission set. description: type: string description: The description of the permission set. project_id: type: string example: 123e4567-e89b-12d3-a456-426614174000 description: The unique identifier of the project the permission set belongs to. is_default: type: boolean description: True when this permission set is the project default. Used when no permission_set_id is provided during project membership invite. is_template: type: boolean description: True when this permission set is a template. is_capmo_managed: type: boolean description: True when this permission set is managed by Capmo. created_at: type: string format: date-time description: The date and time the permission set was created. created_by: type: string example: 123e4567-e89b-12d3-a456-426614174000 description: The unique identifier of the user who created the permission set. required: - id - name - description - project_id - is_default - is_template - is_capmo_managed - created_at - created_by securitySchemes: CapmoAuth: type: apiKey in: header name: Authorization description: 'For authentication, use the custom prefix followed by a space and then your API key. Example: "Capmo YOUR_API_KEY".' x-readme: headers: - key: Request-Id value: YOUR_REQUEST_ID