Add/Remove Biometrics for Tenant

Server Calls for Tenant Algorithm#

1. Get Auth Token#

POST {{user_server_url}}/v2/oauth2/oauth/token?scope=SCOPE_TENANT_ADMIN&grant_type=client_credentials

curl --location --request POST '{{user_server_url}}/v2/oauth2/oauth/token?scope=SCOPE_TENANT_ADMIN&grant_type=client_credentials' \
--header 'Authorization: Basic {{auth_credentials}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw ''

2. Associate an Algorithm with Tenant#

PUT {{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}

curl --location --request PUT '{{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"licenseData": {
"info": "license info",
"maxIdentities": 100000,
"expireDate": 1563456524312
}
}'

3. Associate a Liveness for a Tenant Algorithm#

PUT {{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}/liveness/{{liveness_code}}

curl --location --request PUT '{{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}/liveness/{{liveness_code}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw ''

4. Disassociate a Liveness from a Tenant Algorithm#

DELETE {{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}/liveness/{{liveness_code}}

curl --location --request DELETE '{{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}/liveness/{{liveness_code}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw ''

5. Disassociate an Algorithm from a Tenant#

DELETE {{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}

curl --location --request DELETE '{{gmi_server_url}}/v2/gmiserver/tenant/{{tenant_code}}/svrgrp/main/alg/{{alg_code}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw ''