Returns consent with changed status.
Parameter name | Data type | Description |
---|---|---|
consent | int | Consent id |
status | String | UNSIGNED | GRANTED | REVOKED |
Thrown exception | Description |
---|---|
ConsentNotExistsException | if consent hub does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
InvalidConsentStatusException | if passed status value can not be set |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | if user does not exist |
Return type | Description |
---|---|
Consent |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/changeConsentStatus
Example params
{ "consent" : 56 , "status" : "text" }
Example response
{ "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" }
Evaluates consents for given consent hub.
Parameter name | Data type | Description |
---|---|---|
consentHub | Consent | Hub |
Thrown exception | Description |
---|---|
ConsentNotExistsException | if consent hub does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/evaluateConsentsForConsentHub
Example params
{ "consentHub" : { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } }
Example response
null
Evaluates consents for given consent hubs.
Parameter name | Data type | Description |
---|---|---|
consentHubs | List<Integer> | id of consent hubs |
Thrown exception | Description |
---|---|
ConsentNotExistsException | if consent hub does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/evaluateConsentsForConsentHubs
Example params
{ "consentHubs" : [ 14 , 5 ] }
Example response
null
Corresponding consent hubs (containing the service) will have consents evaluated ONLY for selected service. Service defines whether only active users will be evaluated or expired ones as well.
Parameter name | Data type | Description |
---|---|---|
service | used | for consents evaluation |
Thrown exception | Description |
---|---|
ConsentNotExistsException | if consent hub does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
void |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/evaluateConsentsForService
Example params
{ "service" : {...} }
Example response
null
Return list of all Consent Hubs.
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<ConsentHub> | list of Consent Hubs |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getAllConsentHubs
Example response
[ { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , {...} , {...} ]
Returns all existing Consents
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Consent> | list of Consents |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getAllConsents
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns Consent with the corresponding id
Parameter name | Data type | Description |
---|---|---|
id | int | Consent id |
Thrown exception | Description |
---|---|
ConsentNotExistsException | when Consent specified by id doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Consent> | list of Consents |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentById
Example params
{ "id" : 76 }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns consent for a user in consent hub with specified status
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
consentHub | int | ConsentHub id |
status | String | UNSIGNED | GRANTED | REVOKED |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | when Consent Hub specified by id doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | when User specified by id doesn't exist |
Return type | Description |
---|---|
Consent | consent of User in the ConsentHub with specified ConsentStatus |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentForUserAndConsentHub
Example params
{ "user" : 40 , "consentHub" : 16 , "status" : "text" }
Example response
{ "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" }
Returns a Consent Hub by facility id.
Parameter name | Data type | Description |
---|---|---|
facilityId | facility | id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | When Consent Hub for facility with given id doesn't exist. |
FacilityNotExistsException | if facility with given id does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
ConsentHub | Found Consent Hub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentHubByFacility
Example params
{ "facilityId" : {...} }
Example response
{ "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" }
Returns a Consent Hub by its id
.
Parameter name | Data type | Description |
---|---|---|
id | int | Consent Hub id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | When Consent Hub specified by id doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
ConsentHub | Found Consent Hub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentHubById
Example params
{ "id" : 92 }
Example response
{ "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" }
Returns a Consent Hub by its name.
Parameter name | Data type | Description |
---|---|---|
name | String | Consent Hub name |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | When Consent Hub specified by name doesn't exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
ConsentHub | Found Consent Hub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentHubByName
Example params
{ "name" : "text" }
Example response
{ "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" }
Returns a Consent Hub for facility to which resource belongs.
Parameter name | Data type | Description |
---|---|---|
resourceId | resource | id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | If Consent Hub for facility with given id doesn't exist. |
FacilityNotExistsException | If facility with given id does not exist. |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | If resource with given id does not exist. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
ConsentHub | Found Consent Hub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentHubByResource
Example params
{ "resourceId" : {...} }
Example response
{ "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" }
Returns all consents for a ConsentHub
Parameter name | Data type | Description |
---|---|---|
consentHub | int | ConsentHub id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | when Consent Hub specified by id doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Consent> | Consents of the ConsentHub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForConsentHub
Example params
{ "consentHub" : 49 }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns all consents with a specific status for a ConsentHub.
Parameter name | Data type | Description |
---|---|---|
consentHub | int | ConsentHub id |
status | String | UNSIGNED | GRANTED | REVOKED |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | when Consent Hub specified by id doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Consent> | Consents of the ConsentHub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForConsentHub
Example params
{ "consentHub" : 0 , "status" : "text" }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns consents for members assigned to the chosen resource.
Parameter name | Data type | Description |
---|---|---|
resource | int | resource id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | when Consent Hub doesn't exist |
FacilityNotExistsException | when facility doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
ResourceNotExistsException | when resource specified by id doesn't exist |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
List<Consent> | Consents of the ConsentHub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForConsentHubByResource
Example params
{ "resource" : 57 }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns all consents for a User
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | when User specified by id doesn't exist |
Return type | Description |
---|---|
List<Consent> | Consents of the User |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForUser
Example params
{ "user" : 42 }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns all consents with a specific status for a User.
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
status | String | UNSIGNED | GRANTED | REVOKED |
Thrown exception | Description |
---|---|
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | when User specified by id doesn't exist |
Return type | Description |
---|---|
List<Consent> | Consents of the User |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForUser
Example params
{ "user" : 60 , "status" : "text" }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Returns all consents for a user in specified consent hub
Parameter name | Data type | Description |
---|---|---|
user | int | User id |
consentHub | int | ConsentHub id |
Thrown exception | Description |
---|---|
ConsentHubNotExistsException | when Consent Hub specified by id doesn't exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
UserNotExistsException | when User specified by id doesn't exist |
Return type | Description |
---|---|
List<Consent> | Consents of the User in the ConsentHub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/getConsentsForUserAndConsentHub
Example params
{ "user" : 23 , "consentHub" : 65 }
Example response
[ { "id" : 1 , "userId" : 1 , "status" : "UNSIGNED" , "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } , "attributes" : [ { "id" : 2820 , "friendlyName" : "createdAt" , "namespace" : "urn:perun:vo:attribute-def:core" , "type" : "java.lang.String" , "entity" : "vo" , "writable" : true , "baseFriendlyName" : "createdAt" , "friendlyNameParameter" : "" , "unique" : false , "displayName" : "VO created date" , "description" : "Date when VO was created." , "beanName" : "AttributeDefinition" } , {...} , {...} ] , "beanName" : "Consent" } , {...} , {...} ]
Updates a consent hub.
Parameter name | Data type | Description |
---|---|---|
consentHub | ConsentHub | JSON object |
Thrown exception | Description |
---|---|
ConsentHubExistsException | if consent hub with the same name already exists |
ConsentHubNotExistsException | if consent hub with given id does not exist |
InternalErrorException | When unspecified error occur. See exception param message for explanation. |
PrivilegeException | When caller is not allowed to call this method. Result may vary based on caller identity and provided parameter values. |
RpcException | Wrong usage of API (wrong url, missing param etc.). See exception params message and type for explanation. |
Return type | Description |
---|---|
updated | consent hub |
Example URL
https://[hostname]/krb/rpc/json/consentsManager/updateConsentHub
Example params
{ "consentHub" : { "id" : 10 , "name" : "Test Consent Hub" , "enforceConsents" : false , "facilities" : [ { "id" : 24 , "name" : "host.facility.cz" , "description" : "is optional" , "beanName" : "Facility" } , {...} , {...} ] , "beanName" : "ConsentHub" } }
Example response
{ ... TODO ... }