Post Reset
Request
POST [[[<REST API URL>|Hub-Rest-Api-URL.html]]]/roles/role id/reset
Request Body
service
extends authorityHolder
{
"key": string,
"homeUrl": string,
"baseUrls": [string, ...],
"userUriPattern": string,
"groupUriPattern": string,
"redirectUris": [string, ...],
"untrustedRedirectUris": [[[[untrustedRedirectURI|HUB-REST-API_JSON-Scheme.html#untrustedRedirectURI]]], ...],
"applicationName": string,
"vendor": string,
"releaseDate": calendar,
"version": string,
"audience": string,
"iconUrl": string,
"resources": [[[[resource|HUB-REST-API_JSON-Scheme.html#resource]]], ...],
"permissions": [[[[permission|HUB-REST-API_JSON-Scheme.html#permission]]], ...],
"defaultRoles": [[[[role|HUB-REST-API_JSON-Scheme.html#role]]], ...],
"viewers": [[[[authorityHolder|HUB-REST-API_JSON-Scheme.html#authorityHolder]]], ...],
"trusted": boolean,
"consentRequired": boolean,
"secret": string,
"apiVersion": string,
"scopeItems": [string, ...],
"id": string /* from authorityHolder */,
"aliases": [[[[alias|HUB-REST-API_JSON-Scheme.html#alias]]], ...] /* from authorityHolder */,
"name": string /* from authorityHolder */,
"projectRoles": [[[[projectRole|HUB-REST-API_JSON-Scheme.html#projectRole]]], ...] /* from authorityHolder */,
"transitiveProjectRoles": [[[[projectRole|HUB-REST-API_JSON-Scheme.html#projectRole]]], ...] /* from authorityHolder */,
"sourcedProjectRoles": [[[[sourcedProjectRole|HUB-REST-API_JSON-Scheme.html#sourcedProjectRole]]], ...] /* from authorityHolder */,
"organizationRoles": [[[[organizationRole|HUB-REST-API_JSON-Scheme.html#organizationRole]]], ...] /* from authorityHolder */,
"transitiveOrganizationRoles": [[[[organizationRole|HUB-REST-API_JSON-Scheme.html#organizationRole]]], ...] /* from authorityHolder */,
"sourcedOrganizationRoles": [[[[sourcedOrganizationRole|HUB-REST-API_JSON-Scheme.html#sourcedOrganizationRole]]], ...] /* from authorityHolder */
}
Response
Response Code | Meaning |
---|---|
200 OK | Successful request. |
400 Bad Request | At least one of the request parameters is invalid. For example, a required field in the passed JSON object is missing. For details, check the error message in the response. |
403 Forbidden | The requester has no access to the requested resource. |
404 Not Found | The requested resource was not found. |
500 Internal Server Error | Failed to process request because of the server error. For details, check the error message in the response. |
Response body
{
"id": string,
"aliases": [[[[alias|HUB-REST-API_JSON-Scheme.html#alias]]], ...],
"key": string,
"name": string,
"description": string,
"permissions": [[[[permission|HUB-REST-API_JSON-Scheme.html#permission]]], ...]
}
19 May 2025