Create a claim
Creates a new claim that may be referenced by identity scopes to control inclusion in tokens and UserInfo responses.
API-KeyX-API-KEY<token>MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>
Request Body
application/json
The request payload used to create a claim.
TypeScript Definitions
Use the request body type in TypeScript.
Create Claim Resource Request: Creates a claim that defines how claim values are resolved from the identity context.
Response Headers
201
Returns the location header
uriResponse Body
application/json
The claim was created successfully
TypeScript Definitions
Use the response body type in TypeScript.
Claim Response: Represents a claim that may be included in identity tokens, access tokens, or UserInfo responses.
Errors
curl -X POST "https://your-domain.us.monocloud.com/api/resources/claim_resources" \ -H "X-API-KEY: <token>" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "source": "string" }'{ "id": "string", "display_name": null, "description": null, "show_in_discovery_document": true, "creation_time": 0, "last_updated": 0, "name": "string", "source": "string", "is_default": true}