メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
verifiable-credentials
/
verification
/
templates
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
    verification "github.com/auth0/go-auth0/management/management/verifiablecredentials/verification"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &verification.CreateVerifiableCredentialTemplateRequestContent{
        Name: "name",
        Type: "type",
        Dialect: "dialect",
        Presentation: &management.MdlPresentationRequest{
            OrgIso1801351MDl: &management.MdlPresentationRequestProperties{
                OrgIso1801351: &management.MdlPresentationProperties{},
            },
        },
        WellKnownTrustedIssuers: "well_known_trusted_issuers",
    }
    client.VerifiableCredentials.Verification.Templates.Create(
        context.TODO(),
        request,
    )
}
{
  "created_at": "2021-01-01T00:00:00Z",
  "custom_certificate_authority": "<string>",
  "dialect": "simplified/1.0",
  "id": "vct_0000000000000001",
  "name": "<string>",
  "presentation": {
    "org.iso.18013.5.1.mDL": {
      "org.iso.18013.5.1": {
        "age_birth_year": true,
        "age_in_years": true,
        "birth_date": true,
        "driving_privileges": true,
        "expiry_date": true,
        "family_name": true,
        "family_name_national_character": true,
        "given_name": true,
        "given_name_national_character": true,
        "issue_date": true,
        "issuing_authority": true,
        "issuing_country": true,
        "issuing_jurisdiction": true,
        "nationality": true,
        "portrait": true,
        "portrait_capture_date": true,
        "resident_address": true,
        "resident_city": true,
        "resident_country": true,
        "resident_postal_code": true,
        "resident_state": true
      }
    }
  },
  "type": "mdl",
  "updated_at": "2021-01-01T00:00:00Z",
  "well_known_trusted_issuers": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

dialect
string
必須
Maximum string length: 255
Pattern: ^simplified/1.0$
name
string
必須
Required string length: 1 - 255
presentation
object
必須

簡略化された提示要求

type
string
必須
Required string length: 1 - 255
well_known_trusted_issuers
string
必須
Required string length: 1 - 255
Pattern: ^aamva$
custom_certificate_authority
string | null
Required string length: 1 - 4096

レスポンス

テンプレートを正常に作成しました。

created_at
string<date-time>
デフォルト:2021-01-01T00:00:00Z

テンプレートが作成された日時。

custom_certificate_authority
string | null

カスタム証明書認証局。

Required string length: 1 - 4096
dialect
string
デフォルト:simplified/1.0

テンプレートの方言。

Maximum string length: 255
id
string
デフォルト:vct_0000000000000001

テンプレートの id。

name
string

テンプレートの名前。

presentation
object

簡略化された提示要求

type
string
デフォルト:mdl

テンプレートのタイプ。

updated_at
string<date-time>
デフォルト:2021-01-01T00:00:00Z

テンプレートが作成された日時。

well_known_trusted_issuers
string | null

既知の信頼できる発行元。カンマ区切りです。

Required string length: 1 - 255