Renew Token Set
- Print
- PDF
Renew Token Set
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
PUT /kms/v1/keys/{keyTag}/token-set
Recreate a token set (refresh token and access token).
Caution
- Recreating a token set does not automatically discard existing token sets.
- The token will have all the key permissions of the user who requested the token to be generated.
- Token generators do not manage the tokens they generate, so they can't be destroyed individually. Therefore, it is crucial to take extra precautions to prevent token leakage.
Request
Request parameters
Parameter Name | Type | Additional Information |
---|---|---|
x-ncp-ocapi-token | Header(Required) | Refresh Token |
keyTag | Path(Required) | |
accessTokenHours | Body: String | 1 - 17520 (Default = 72). TTL will be 'infinite' if the string "UL" is entered |
refreshTokenHours | Body: String | 1 - 17520 (Default = 2160). TTL will be 'infinite' if the string "UL" is entered |
Request body example
{
"accessTokenHours": "string",
"refreshTokenHours": "string"
}
Response
Response body
{
"code": "string",
"data": {
"refreshToken": "string",
"accessToken": "string"
}
}
Was this article helpful?