light-mode-image
Learn
MATTR VII PlatformCredential types

Create credential type

Creates a new credential type in the requested ecosystem.

Analytics Events

ECOSYSTEM_CREDENTIAL_CREATE_STARTECOSYSTEM_CREDENTIAL_CREATE_SUCCESSECOSYSTEM_CREDENTIAL_CREATE_FAIL

Roles

admindts-provider
POST/v1/ecosystems/{ecosystemId}/credentials
AuthorizationBearer <token>

In: header

Path Parameters

profilestring
Value in"compact" | "compact-semantic" | "web-semantic"
typestring
namestring

The name of the credential

Length1 <= length <= 50
profilestring
Value in"mobile"
docTypestring
namestring

The name of the credential

Length1 <= length <= 50

Response Body

curl -X POST "https://example.vii.au01.mattr.global/v1/ecosystems/87880d7e-a4d0-462e-8383-3f1e5e16865d/credentials" \  -H "Content-Type: application/json" \  -d '{    "profile": "compact",    "type": "DriverLicense",    "name": "Driver\'s License"  }'
{
  "id": "599bf148-d711-405a-a20b-9c8a87ac8850",
  "ecosystemId": "87880d7e-a4d0-462e-8383-3f1e5e16865d",
  "profile": "compact",
  "type": "DriverLicense",
  "name": "Driver's License"
}
{
  "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

How would you rate this page?