Create Credential Type
Related workflow: Working with Beams and credentials
POST
Create a credential type schema that can be issued by a beam.
Behavior
- The slug is generated from the beam name and the version is
1.0.0.
Related: Get Credential Type
apiKeyheader
apikey<token>application/json- body
schema*objectJSON schema that describes the stored credential data
beamId*stringThe id of the Beam to attach the CredentialType to
Credential type created; returns its ID and generated slug.
application/json- response
credentialTypeId*stringThe id of the created CredentialType
credentialTypeSlug*stringThe slug of the created CredentialType, used to identify different versions of the same input
curl -X POST 'https://api.cerebrum.com/v1/credential-type' \ -H 'apikey: CEREBRUM_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "schema": {}, "beamId": "string"}'Example Response
{ "credentialTypeId": "string", "credentialTypeSlug": "string"}