Skip to content

CreateSchema

POST
/schemas

Create schema

Authorizations

Request Body required

object
issuerId
required
string
name
required
string
version
required
string
1.0.0
attributes
required
Array<string>
endorse
boolean
endorserDid
string

Responses

200

Get schema

Any of:
object
jobId
string
schemaState
required
Any of:
object
state
required
string
Allowed values: wait
schema
object
issuerId
required
string
name
required
string
version
required
string
attrNames
required
Array<string>
schemaId
string
schemaMetadata
required

Construct a type with a set of properties K of type T

object
registrationMetadata
required

Construct a type with a set of properties K of type T

object
Examples
{
"state": "finished",
"schema": {
"issuerId": "did:indy:bcovrin:testnet:LRCUFcizUL74AGgLqdJHK7",
"name": "Test Schema",
"version": "1.0.0",
"attrNames": [
"Name",
"Age"
]
},
"schemaId": "LRCUFcizUL74AGgLqdJHK7:2:Test Schema:1.0.0"
}