MATTR VII ManagementClients
Create a client
Creates a new client for the requested tenant.
Analytics Events
TENANT_CLIENT_CREATE_STARTTENANT_CLIENT_CREATE_SUCCESSTENANT_CLIENT_CREATE_FAIL
POST
/v1/tenants/{tenantId}/clients
AuthorizationBearer <token>
In: header
Path Parameters
tenantIdstring
Unique ID of the tenant to create a client for.
Format
uuid
namestring
Name of the client associated with this tenant.
rolesarray<string>
A list of roles assigned to the client.
Response Body
curl -X POST "https://manage.mattr.global/v1/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/clients" \ -H "Content-Type: application/json" \ -d '{ "name": "Example client", "roles": [ "issuer" ] }'
{
"clientId": "suC7IhmDIawnlqBlEOuIqBWoqppcdI5",
"name": "Example client",
"permissions": [
"dids:read",
"dids:create"
],
"roles": [
"issuer"
],
"clientSecret": "QmtShBH3mkO05ra91dNO-YyPwPbfs1iokh57IgqhzVWTAZlolCdeAGYOG2kz1"
}
{
"code": "string",
"message": "string",
"details": [
{
"value": "string",
"msg": "Invalid value",
"param": "id",
"location": "body"
}
]
}
{
"code": "string",
"message": "string",
"details": [
{
"value": "string",
"msg": "Invalid value",
"param": "id",
"location": "body"
}
]
}
Empty
Empty
How would you rate this page?