Generates a new Apple OAuth2 client secret key.

Only superusers can perform this action.

API details
POST
/api/settings/apple/generate-client-secret
Requires Authorization:TOKEN
Body Parameters
Param Type Description
Required clientId
String The identifier of your app (aka. Service ID).
Required teamId
String 10-character string associated with your developer account (usually could be found next to your name in the Apple Developer site).
Required keyId
String 10-character key identifier generated for the "Sign in with Apple" private key associated with your developer account.
Required privateKey
String PrivateKey is the private key associated to your app.
Required duration
Number Duration specifies how long the generated JWT token should be considered valid.
The specified value must be in seconds and max 15777000 (~6months).
Body parameters could be sent as JSON or multipart/form-data.
Responses
{#each responses as response (response.code)} {/each}
{#each responses as response (response.code)}
{/each}