メインコンテンツへスキップ
PATCH
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
push-notification
/
providers
/
apns
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"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &management.SetGuardianFactorsProviderPushNotificationApnsRequestContent{}
    client.Guardian.Factors.PushNotification.SetApnsProvider(
        context.TODO(),
        request,
    )
}
{
  "bundle_id": "<string>",
  "sandbox": true
}

承認

Authorization
string
header
必須

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

ボディ

bundle_id
string | null
Required string length: 1 - 1000
p12
string | null
Required string length: 1 - 10000
sandbox
boolean

レスポンス

APNS の設定が正常に更新されました。

bundle_id
string | null
Required string length: 1 - 1000
sandbox
boolean