Skip to main content

Configuring Resource Types

Resource Types follow those registered with the Authorization Server (found at: https://AS_BASE_URL/registry/resource/resource_definition)

Types are kept generic since they are reused by many Authorization Servers.

Request Attributes

ParameterDescriptionExample valueRequiredLocalizable
typeA URL used to define the resource typehttps://www.identos.com/resource-definitions/identity-profile-res-defYesNo

Sample Requests

Create a new Resource Type

curl -X POST '{{WS_ADMIN_URI}}/resource-type' \
--header 'Content-Type: application/vnd.api+json' \
--header 'ApiVersion: v1.0' \
--header 'Authorization: {{WS_ADMIN_STATIC_TOKEN}}' \
--header 'Accept-Language: en' \
--data-raw '{
"data": {
"type": "resource-type",
"id": 1,
"attributes": {
"type": "https://www.identos.com/resource-definitions/identity-profile-res-def"
}
}
}'

Get existing Resource Types

curl -X GET '{{WS_ADMIN_URI}}/resource-type' \
--header 'Content-Type: application/vnd.api+json' \
--header 'ApiVersion: v1.0' \
--header 'Authorization: {{WS_ADMIN_STATIC_TOKEN}}' \
--header 'Accept-Language: en'

Update a Resource Type

curl -X PATCH '{{WS_ADMIN_URI}}/resource-type/1' \
--header 'Content-Type: application/vnd.api+json' \
--header 'ApiVersion: v1.0' \
--header 'Authorization: {{WS_ADMIN_STATIC_TOKEN}}' \
--header 'Accept-Language: en' \
--data-raw '{
"data": {
"type": "resource-type",
"id": 1,
"attributes": {
"type": "https://www.identos.com/resource-definitions/health-record-res-def"
}
}
}'

Verify using the Wallet application API: https://WALLET_API_SERVER/registry/organizations