# CESNET Consents Manager API

**Canonical:** https://apis.io/apis/cesnet/cesnet-consentsmanager-api/  
**Provider:** CESNET — https://apis.io/providers/cesnet/  
**Base URL:** https://api-dev.perun-aai.org/ba/rpc  
**Documentation:** https://perun-aai.org/documentation/

CESNET Consents Manager API is one of 27 APIs that [CESNET](https://apis.io/providers/cesnet/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. Tagged areas include ConsentsManager. The published artifact set on APIs.io includes an OpenAPI specification, a GitHub repository, and 6 JSON Schemas.

ConsentsManager RPC API in Perun

## Operations (19)

| Method | Path | Summary |
|---|---|---|
| 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. |

## Machine-readable artifacts (9)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/openapi/cesnet-consentsmanager-api-openapi.yml
- **GitHubRepository** — https://github.com/CESNET/perun
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-application-form-item-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-perun-notif-template-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-application-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-registrar-application-input-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-applications-page-query-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/cesnet/refs/heads/main/json-schema/cesnet-publication-schema.json
- **GitHubRepository** — https://github.com/CESNET/exafs

## Other CESNET APIs (12)

- [CESNET Attributes Manager API](https://apis.io/apis/cesnet/cesnet-attributesmanager-api/)
- [CESNET Audit Messages Manager API](https://apis.io/apis/cesnet/cesnet-auditmessagesmanager-api/)
- [CESNET Authorization API](https://apis.io/apis/cesnet/cesnet-authorization-api/)
- [CESNET Authz Resolver API](https://apis.io/apis/cesnet/cesnet-authzresolver-api/)
- [CESNET Cabinet Manager API](https://apis.io/apis/cesnet/cesnet-cabinetmanager-api/)
- [CESNET Choices API](https://apis.io/apis/cesnet/cesnet-choices-api/)
- [CESNET Config Manager API](https://apis.io/apis/cesnet/cesnet-configmanager-api/)
- [CESNET Database Manager API](https://apis.io/apis/cesnet/cesnet-databasemanager-api/)
- [CESNET Ext Sources Manager API](https://apis.io/apis/cesnet/cesnet-extsourcesmanager-api/)
- [CESNET Facilities Manager API](https://apis.io/apis/cesnet/cesnet-facilitiesmanager-api/)
- [CESNET Groups Manager API](https://apis.io/apis/cesnet/cesnet-groupsmanager-api/)
- [CESNET Integration Manager API](https://apis.io/apis/cesnet/cesnet-integrationmanager-api/)

## Tags

ConsentsManager

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/cesnet/cesnet-consentsmanager-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/cesnet/.
