Claim management API
The Claim management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize
3 scopes
| Scope | Description |
|---|---|
read | Grants read access |
write | Grants write access |
admin | Grants read and write access to administrative information |
management
Secured Admin-only calls
Retrieve local claims
GET /claim-dialects/local/claims
Retrieve local claims.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | Define only the required attributes to be sent in the response object. | |
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
filter | query | string | Condition to filter the retrieval of records. | |
sort | query | string | Define the order by which the retrieved records should be sorted. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Local claims. | array of LocalClaimRes |
401 | Unauthorized. | |
500 | Internal Server Error. | Error |
501 | Not Implemented. | Error |
Add a local claim
POST /claim-dialects/local/claims
Add a new claim.
Scope(Permission) required: internal_claim_meta_create
Request body: application/json
Local claim to be added.
Schema: LocalClaimReq
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | A unique URI specific to the claim. |
description | string | Yes | Description of the claim. |
displayOrder | integer | The order in which the claim is displayed among other claims under the same dialect. | |
displayName | string | Yes | Name of the claim to be displayed in the UI. |
readOnly | boolean | Specifies if the claim is read-only. | |
regEx | string | Regular expression used to validate inputs. | |
required | boolean | Specifies if the claim is required for user registration. | |
supportedByDefault | boolean | Specifies if the claim will be prompted during user registration and displayed on the user profile. | |
attributeMapping | array of AttributeMapping | Yes | Userstore attribute mappings. |
properties | array of Property | Define any additional properties if required. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieve local claim by ID
GET /claim-dialects/local/claims/{claim-id}
Retrieve a local claim matching the given claim ID.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
claim-id | path | string | Yes | Id of the claim. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Requested claim. | LocalClaimRes |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update a local claim by ID
PUT /claim-dialects/local/claims/{claim-id}
Update a local claim.
Scope(Permission) required: internal_claim_meta_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
claim-id | path | string | Yes | Id of the claim. |
Request body: application/json
Updated local claim.
Schema: LocalClaimReq
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | A unique URI specific to the claim. |
description | string | Yes | Description of the claim. |
displayOrder | integer | The order in which the claim is displayed among other claims under the same dialect. | |
displayName | string | Yes | Name of the claim to be displayed in the UI. |
readOnly | boolean | Specifies if the claim is read-only. | |
regEx | string | Regular expression used to validate inputs. | |
required | boolean | Specifies if the claim is required for user registration. | |
supportedByDefault | boolean | Specifies if the claim will be prompted during user registration and displayed on the user profile. | |
attributeMapping | array of AttributeMapping | Yes | Userstore attribute mappings. |
properties | array of Property | Define any additional properties if required. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Delete a local claim
DEL /claim-dialects/local/claims/{claim-id}
Delete a claim by claim ID.
Scope(Permission) required: internal_claim_meta_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
claim-id | path | string | Yes | Id of the claim. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Retrieve claim dialects
GET /claim-dialects
Retrieve claim dialects.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
filter | query | string | Condition to filter the retrieval of records. | |
sort | query | string | Define the order by which the retrieved records should be sorted. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Claim dialects. | array of ClaimDialectRes |
401 | Unauthorized. | |
500 | Internal Server Error. | Error |
501 | Not Implemented. | Error |
Add a claim dialect
POST /claim-dialects
Add a new claim dialect.
Scope(Permission) required: internal_claim_meta_create
Request body: application/json
claim dialect to add.
Schema: ClaimDialectReq
1 property
| Name | Type | Required | Description |
|---|---|---|---|
dialectURI | string | Yes | URI of the claim dialect. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieve claim dialect
GET /claim-dialects/{dialect-id}
Retrieve a claim dialect matching the given dialect id.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Requested claim dialect. | ClaimDialectRes |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update a claim dialect
PUT /claim-dialects/{dialect-id}
Update a claim dialect.
Scope(Permission) required: internal_claim_meta_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
Request body: application/json
Updated claim dialect.
Schema: ClaimDialectReq
1 property
| Name | Type | Required | Description |
|---|---|---|---|
dialectURI | string | Yes | URI of the claim dialect. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Delete a claim dialect
DEL /claim-dialects/{dialect-id}
Delete a claim dialect by claim ID.
Scope(Permission) required: internal_claim_meta_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Export a claim dialect with claims.
GET /claim-dialects/{dialect-id}/export
This API provides the capability to retrieve a claim dialect for a given dialect ID along with all related claims as a XML, YAML, or JSON file.
Permission required:
* /permission/admin/manage/identity/claimmgt/metadata/view
Scope required:
* internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | string |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update a claim dialect with claims.
PUT /claim-dialects/import
This API provides the capability to update a claim dialect and all related claims from a file in XML, YAML, or JSON format.
Permission required:
* /permission/admin/manage/identity/claimmgt/metadata/create
Scope required:
* internal_claim_meta_create
Request body: multipart/form-data
Schema: any
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Import an external claim dialect with claims.
POST /claim-dialects/import
This API provides the capability to import a external claim dialect with related claims from a file in XML, YAML, or JSON format.
Permission required:
* /permission/admin/manage/identity/claimmgt/metadata/create
Scope required:
* internal_claim_meta_create
Request body (required): multipart/form-data
Schema: any
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Retrieve external claims
GET /claim-dialects/{dialect-id}/claims
Retrieve External claims.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
limit | query | integer (int32) | Maximum number of records to return. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
filter | query | string | Condition to filter the retrieval of records. | |
sort | query | string | Define the order by which the retrieved records should be sorted. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | External claims. | array of ExternalClaimRes |
401 | Unauthorized. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
501 | Not Implemented. | Error |
Add an external claim
POST /claim-dialects/{dialect-id}/claims
Add a new external claim.
Scope(Permission) required: internal_claim_meta_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
Request body: application/json
External claim to add.
Schema: ExternalClaimReq
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | Claim URI of the external claim. |
mappedLocalClaimURI | string | Yes | The local claim URI to map with the external claim. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Item Created. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Retrieve external claim
GET /claim-dialects/{dialect-id}/claims/{claim-id}
Retrieve an external claim matching the given dialect ID and claim ID.
Scope(Permission) required: internal_claim_meta_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | ID of the claim dialect. |
claim-id | path | string | Yes | ID of the claim. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Requested claim. | ExternalClaimRes |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | The specified resource is not found. | Error |
500 | Internal Server Error. | Error |
Update an external claim
PUT /claim-dialects/{dialect-id}/claims/{claim-id}
Update an external claim.
Scope(Permission) required: internal_claim_meta_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
claim-id | path | string | Yes | Id of the claim. |
Request body: application/json
Updated external claim.
Schema: ExternalClaimReq
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | Claim URI of the external claim. |
mappedLocalClaimURI | string | Yes | The local claim URI to map with the external claim. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Element Already Exists. | Error |
500 | Internal Server Error. | Error |
Delete an external claim
DEL /claim-dialects/{dialect-id}/claims/{claim-id}
Delete a claim by dialect ID and claim ID.
Scope(Permission) required: internal_claim_meta_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
dialect-id | path | string | Yes | Id of the claim dialect. |
claim-id | path | string | Yes | Id of the claim. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content. | |
400 | Invalid input request. | Error |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | Error |
Schemas
LocalClaimReq
Type: object
Local claim request.
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | A unique URI specific to the claim. |
description | string | Yes | Description of the claim. |
displayOrder | integer | The order in which the claim is displayed among other claims under the same dialect. | |
displayName | string | Yes | Name of the claim to be displayed in the UI. |
readOnly | boolean | Specifies if the claim is read-only. | |
regEx | string | Regular expression used to validate inputs. | |
required | boolean | Specifies if the claim is required for user registration. | |
supportedByDefault | boolean | Specifies if the claim will be prompted during user registration and displayed on the user profile. | |
attributeMapping | array of AttributeMapping | Yes | Userstore attribute mappings. |
properties | array of Property | Define any additional properties if required. |
LocalClaimRes
Type: object
Local claim response.
12 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | claim ID. | |
claimURI | string | A unique URI specific to the claim. | |
dialectURI | string | URI of the claim dialect. | |
description | string | Description of the claim. | |
displayOrder | integer | The order in which the claim is displayed among other claims under the same dialect. | |
displayName | string | Name of the claim to be displayed in the UI. | |
readOnly | boolean | Specifies if the claim is read-only. | |
regEx | string | Regular expression used to validate inputs. | |
required | boolean | Specifies if the claim is required for user registration. | |
supportedByDefault | boolean | Specifies if the claim will be prompted during user registration and displayed on the user profile. | |
attributeMapping | array of AttributeMapping | Userstore attribute mappings. | |
properties | array of Property | Define any additional properties if required. |
AttributeMapping
Type: object
Claim user store attribute mapping.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mappedAttribute | string | Yes | Userstore attribute to be mapped to. |
userstore | string | Yes | Userstore domain name. |
ClaimDialectReq
Type: object
Claim dialect request.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
dialectURI | string | Yes | URI of the claim dialect. |
ClaimDialectRes
Type: object
Claim dialect response.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Dialect id. | |
dialectURI | string | URI of the claim dialect. | |
link | Link |
ExternalClaimReq
Type: object
External claim request.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
claimURI | string | Yes | Claim URI of the external claim. |
mappedLocalClaimURI | string | Yes | The local claim URI to map with the external claim. |
ExternalClaimRes
Type: object
External claim response.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | External claim ID. | |
claimURI | string | Claim URI of the external claim. | |
claimDialectURI | string | Dialect URI of the external claim. | |
mappedLocalClaimURI | string | The local claim URI to map with the external claim. |
Link
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string | Relative path to the target resource. | |
rel | string | Describes how the current context is related to the target resource. |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?