Create a schema attestation

In this secton you will learn how to create a schema to be sued to generate an attestation.

From the Issuer

Create a new schema

  • Create a new POST request: enter the value: {{base_URL}}/schemas

  • Type this json in the Body tab, then raw tab (you can adapt this json as this is an example but keep the "__source" variable)

{
  "owner": "TestIssuer",
  "public": true,
  "tags": [
    "test"
  ],
  "description": "Test Attestation blablabla...",
  "logoUrl": "https://connect-prod.s3.fr-par.scw.cloud/icons/attestations/wallet/article.svg",
  "attributes": [
    {
      "description": "source (technical data)",
      "name": "__source"
    },
    {
      "description": "article type",
      "name": "type"
    },
    {
      "description": "size of article",
      "name": "size"
    },
    {
      "description": "price of article",
      "name": "price"
    }
  ],
  "version": "1.0",
  "name": "Test Attestation publique XXX"
}

replace "Test Attestation publique XXX" by a personnalized name for your schema

  • Save the request and click SEND

  • The response is:

 {
        "id": "9786e1a2-e563-4a4e-8b79-f3e411d9763e",
        "schemaId": "1uYeHCcPjzRVGFQcFPMsg:2:Test Attestation publique XXX:1.0",
        "name": "Test Attestation publique XXX",
        "attributes": [
            {
                "name": "__source",
                "description": "source (technical data)"
            },
            {
                "name": "type",
                "description": "article type"
            },
            {
                "name": "size",
                "description": "size of article"
            },
            {
                "name": "price",
                "description": "price of article"
            }
        ],
        "version": "1.0",
        "logoUrl": "https://connect-prod.s3.fr-par.scw.cloud/icons/attestations/wallet/article.svg",
        "description": "Test Attestation blablabla...",
        "tags": [
            "test"
        ],
        "public": true,
        "owner": "TestIssuer"
    }

Dernière mise à jour