CESNET Consents Manager API

ConsentsManager RPC API in Perun

Operations 19

GET /json/consentsManager/getAllConsents Return list of all existing Consents #
GET /json/consentsManager/getConsentById Return Consent object with corresponding id #
GET /json/consentsManager/getConsentsForUser/id-s Return Consents of certain status for user with corresponding id #
GET /json/consentsManager/getConsentsForUser/id Return Consents for user with corresponding id #
GET /json/consentsManager/getConsentsForConsentHub/id-s Return Consents of certain status for ConsentHub with corresponding id #
GET /json/consentsManager/getConsentsForConsentHub/id Return Consents for ConsentHub with corresponding id #
GET /json/consentsManager/getConsentsForConsentHubByResource Get consents for members assigned to the resource #
GET /json/consentsManager/getConsentsForUserAndConsentHub Return Consents for specified user in specified consent hub #
GET /json/consentsManager/getConsentForUserAndConsentHub Return Consent object for chosen user in specified consent hub with specified… #
GET /json/consentsManager/getAllConsentHubs Return list of all Consent Hubs #
GET /json/consentsManager/getConsentHubById Returns a Consent Hub by id #
GET /json/consentsManager/getConsentHubByName Returns a Consent Hub by name #
GET /json/consentsManager/getConsentHubByFacility Returns a Consent Hub by facility id #
GET /json/consentsManager/getConsentHubByResource Returns a Consent Hub for facility to which resource belongs #
POST /json/consentsManager/updateConsentHub Updates a consent hub. Ignores related facilities #
POST /urlinjsonout/consentsManager/changeConsentStatus Changes value of consent status #
POST /urlinjsonout/consentsManager/evaluateConsentsForConsentHub Evaluates consents for given consent hub #
POST /urlinjsonout/consentsManager/evaluateConsentsForConsentHubs Evaluates consents for given list of consent hubs #
POST /urlinjsonout/consentsManager/evaluateConsentsForService Evaluates consents ONLY for given service on consent hubs containing it. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cesnet:cesnet-consentsmanager-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cesnet-consentsmanager-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cesnet Consents Manager API
  version: 0.0.0
  contact:
    url: https://perun-aai.org
    email: perun@cesnet.cz
  description: 'Operations tagged ConsentsManager across 2 of this provider''s published API definitions: cesnet-perun-rpc-openapi.yml, cesnet-perun-rpc-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{server}/{authentication}/rpc
  description: Perun RPC server
  variables:
    server:
      default: api-dev.perun-aai.org
      description: DNS name of a Perun server
    authentication:
      default: ba
      description: 'way of authentication:

        ba - HTTP Basic Auth

        krb - Kerberos

        non - no authentication

        cert - X509 client certificate

        oauth - OAuth 2.0 bearer access token

        fed - SAML federation

        '
      enum:
      - ba
      - krb
      - non
      - cert
      - oauth
      - fed
security:
- BasicAuth: []
- BearerAuth: []
tags:
- name: ConsentsManager
  description: ConsentsManager RPC API in Perun
  externalDocs:
    url: https://perun-aai.org/documentation/technical-documentation/rpc-api/rpc-javadoc-ConsentsManager.html
paths:
  /json/consentsManager/getAllConsents:
    get:
      tags:
      - ConsentsManager
      operationId: getAllConsents
      summary: Return list of all existing Consents
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentById:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentById
      summary: Return Consent object with corresponding id
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          $ref: '#/components/responses/ConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForUser/id-s:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForUserWithStatus
      summary: Return Consents of certain status for user with corresponding id
      parameters:
      - $ref: '#/components/parameters/userId'
      - name: status
        description: consent status
        schema:
          $ref: '#/components/schemas/ConsentStatus'
        in: query
        required: true
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForUser/id:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForUser
      summary: Return Consents for user with corresponding id
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForConsentHub/id-s:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForConsentHubWithStatus
      summary: Return Consents of certain status for ConsentHub with corresponding id
      parameters:
      - $ref: '#/components/parameters/consentHubId'
      - name: status
        description: consent status
        schema:
          $ref: '#/components/schemas/ConsentStatus'
        in: query
        required: true
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForConsentHub/id:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForConsentHub
      summary: Return Consents for ConsentHub with corresponding id
      parameters:
      - $ref: '#/components/parameters/consentHubId'
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForConsentHubByResource:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForConsentHubByResource
      summary: Get consents for members assigned to the resource
      parameters:
      - $ref: '#/components/parameters/resourceId'
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentsForUserAndConsentHub:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentsForUserAndConsentHub
      summary: Return Consents for specified user in specified consent hub
      parameters:
      - $ref: '#/components/parameters/userId'
      - $ref: '#/components/parameters/consentHubId'
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentForUserAndConsentHub:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentForUserAndConsentHub
      summary: Return Consent object for chosen user in specified consent hub with specified…
      parameters:
      - $ref: '#/components/parameters/userId'
      - $ref: '#/components/parameters/consentHubId'
      - name: status
        description: consent status
        schema:
          $ref: '#/components/schemas/ConsentStatus'
        in: query
        required: true
      responses:
        '200':
          $ref: '#/components/responses/ConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getAllConsentHubs:
    get:
      tags:
      - ConsentsManager
      operationId: getAllConsentHubs
      summary: Return list of all Consent Hubs
      responses:
        '200':
          $ref: '#/components/responses/ListOfConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentHubById:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentHubById
      summary: Returns a Consent Hub by id
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          $ref: '#/components/responses/ConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentHubByName:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentHubByName
      summary: Returns a Consent Hub by name
      parameters:
      - $ref: '#/components/parameters/name'
      responses:
        '200':
          $ref: '#/components/responses/ConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentHubByFacility:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentHubByFacility
      summary: Returns a Consent Hub by facility id
      parameters:
      - $ref: '#/components/parameters/facilityId'
      responses:
        '200':
          $ref: '#/components/responses/ConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/getConsentHubByResource:
    get:
      tags:
      - ConsentsManager
      operationId: getConsentHubByResource
      summary: Returns a Consent Hub for facility to which resource belongs
      parameters:
      - $ref: '#/components/parameters/resourceId'
      responses:
        '200':
          $ref: '#/components/responses/ConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /json/consentsManager/updateConsentHub:
    post:
      tags:
      - ConsentsManager
      operationId: updateConsentHub
      summary: Updates a consent hub. Ignores related facilities
      responses:
        '200':
          $ref: '#/components/responses/ConsentHubResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              title: InputUpdateConsentHub
              description: input to updateConsentHub
              type: object
              required:
              - consentHub
              properties:
                consentHub:
                  $ref: '#/components/schemas/ConsentHub'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /urlinjsonout/consentsManager/changeConsentStatus:
    post:
      tags:
      - ConsentsManager
      operationId: changeConsentStatus
      summary: Changes value of consent status
      parameters:
      - $ref: '#/components/parameters/consentId'
      - name: status
        description: consent status
        schema:
          $ref: '#/components/schemas/ConsentStatus'
        in: query
        required: true
      responses:
        '200':
          $ref: '#/components/responses/ConsentResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /urlinjsonout/consentsManager/evaluateConsentsForConsentHub:
    post:
      tags:
      - ConsentsManager
      operationId: evaluateConsentsForConsentHub
      summary: Evaluates consents for given consent hub
      parameters:
      - $ref: '#/components/parameters/consentHubId'
      responses:
        '200':
          $ref: '#/components/responses/VoidResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /urlinjsonout/consentsManager/evaluateConsentsForConsentHubs:
    post:
      tags:
      - ConsentsManager
      operationId: evaluateConsentsForConsentHubs
      summary: Evaluates consents for given list of consent hubs
      parameters:
      - $ref: '#/components/parameters/consentHubIds'
      responses:
        '200':
          $ref: '#/components/responses/VoidResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
  /urlinjsonout/consentsManager/evaluateConsentsForService:
    post:
      tags:
      - ConsentsManager
      operationId: evaluateConsentsForService
      summary: Evaluates consents ONLY for given service on consent hubs containing it.
      parameters:
      - $ref: '#/components/parameters/serviceId'
      responses:
        '200':
          $ref: '#/components/responses/VoidResponse'
        default:
          $ref: '#/components/responses/ExceptionResponse'
    servers:
    - url: https://{server}/{authentication}/rpc
      description: Perun RPC server
      variables:
        server:
          default: api-dev.perun-aai.org
          description: DNS name of a Perun server
        authentication:
          default: ba
          description: 'way of authentication:

            ba - HTTP Basic Auth

            krb - Kerberos

            non - no authentication

            cert - X509 client certificate

            oauth - OAuth 2.0 bearer access token

            fed - SAML federation

            '
          enum:
          - ba
          - krb
          - non
          - cert
          - oauth
          - fed
components:
  schemas:
    ConsentHub:
      allOf:
      - $ref: '#/components/schemas/Auditable'
      properties:
        name:
          type: string
        enforceConsents:
          type: boolean
        facilities:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Facility'
      required:
      - name
      - enforceConsents
      - facilities
    AttributeDefinition:
      allOf:
      - $ref: '#/components/schemas/Auditable'
      properties:
        friendlyName:
          type: string
        namespace:
          type: string
        description:
          type:
          - string
          - 'null'
        type:
          type: string
        displayName:
          type: string
        writable:
          type: boolean
        unique:
          type: boolean
        friendlyNameParameter:
          type: string
          readOnly: true
        baseFriendlyName:
          type: string
          readOnly: true
        entity:
          type: string
          readOnly: true
    PerunBean:
      description: identifiable entity in Perun, common ancestor of all entity classes
      type: object
      properties:
        id:
          type: integer
        beanName:
          type: string
      required:
      - id
      - beanName
      discriminator:
        propertyName: beanName
    Facility:
      allOf:
      - $ref: '#/components/schemas/Auditable'
      properties:
        name:
          type: string
        description:
          type:
          - string
          - 'null'
        uuid:
          type: string
          format: uuid
    ConsentStatus:
      type: string
      description: statuses of consents
      enum:
      - UNSIGNED
      - GRANTED
      - REVOKED
    Consent:
      allOf:
      - $ref: '#/components/schemas/Auditable'
      properties:
        userId:
          type: integer
        status:
          $ref: '#/components/schemas/ConsentStatus'
        consentHub:
          $ref: '#/components/schemas/ConsentHub'
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/AttributeDefinition'
    PerunException:
      description: exception thrown from inside of Perun
      type: object
      properties:
        errorId:
          type: string
        name:
          type: string
        message:
          type: string
    Auditable:
      description: represents audit information
      allOf:
      - $ref: '#/components/schemas/PerunBean'
      properties:
        createdAt:
          type:
          - string
          - 'null'
        createdBy:
          type:
          - string
          - 'null'
        modifiedAt:
          type:
          - string
          - 'null'
        modifiedBy:
          type:
          - string
          - 'null'
        createdByUid:
          type:
          - integer
          - 'null'
        modifiedByUid:
          type:
          - integer
          - 'null'
  parameters:
    serviceId:
      name: service
      description: id of Service
      schema:
        type: integer
      in: query
      required: true
    consentId:
      name: consent
      description: id of Consent
      schema:
        type: integer
      in: query
      required: true
    userId:
      name: user
      description: id of User
      schema:
        type: integer
      in: query
      required: true
    facilityId:
      name: facility
      description: id of Facility
      schema:
        type: integer
      in: query
      required: true
    consentHubIds:
      name: consentHubs[]
      description: list of ConsentHub ids List<Integer>
      in: query
      required: true
      schema:
        type: array
        items:
          type: integer
    consentHubId:
      name: consentHub
      description: id of ConsentHub
      schema:
        type: integer
      in: query
      required: true
    resourceId:
      name: resource
      description: id of Resource
      schema:
        type: integer
      in: query
      required: true
    id:
      name: id
      description: numeric id
      schema:
        type: integer
      in: query
      required: true
    name:
      name: name
      description: name of entity
      schema:
        type: string
      in: query
      required: true
  responses:
    ListOfConsentResponse:
      description: returns List<Consent>
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/Consent'
    VoidResponse:
      description: returns nothing
    ConsentResponse:
      description: returns Consent
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Consent'
    ExceptionResponse:
      description: exception occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PerunException'
    ListOfConsentHubResponse:
      description: returns List<ConsentHub>
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ConsentHub'
    ConsentHubResponse:
      description: returns ConsentHub
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ConsentHub'
  securitySchemes:
    BasicAuth:
      description: HTTP Basic authentication with username and password
      type: http
      scheme: basic
    BearerAuth:
      description: 'OAuth2 Resource Server authentication using access token in ''Authorization: Bearer'' HTTP header'
      type: http
      scheme: bearer
x-refined-from:
- cesnet-perun-rpc-openapi.yml
- cesnet-perun-rpc-openapi.yml