Create schema

Register schema with the current agency tenant and write the schema to the ledger using the tenant as issuer.
This does not create credential definition.

Service Clients (SDKs)

This endpoint can be accessed using one of our service clients as follows.

For more information on how to use our service clients, see our Service Clients (SDKs) guide.

IList<String> attributes = new List<String>() {"Attribute A", "Attribute B"};
String schemaId = await _credentialsClient.CreateSchemaAsync(new SchemaParameters {
  Name = "Schema Name",
  Version = "1.0",
  AttributeNames = attributes
let attributes = ["Attribute A", "Attribute B"];
let schemaId = await credentialsClient.createSchema({
  name: "A Schema Name",
  version: "1.0",
  attributeNames: attributes
attributes = ["Attribute A", "Attribute B"]
schema_id = credentials_client.create_schema({
  "name": "A Schema Name",
  "version": "1.0",
  "attributeNames": attributes
body = = 'A Schema Name'
body.version = '1.0'
body.attribute_names = ['Attribute A', 'Attribute B']
schema_id = credentials_client.create_schema(body)
Click Try It! to start a request and see the response here!