tencent cloud

Smart Media Hosting

Renew an Access Token

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 14:42:34

Description

Renew the Access Token.
Note:
Renewal does not support specifying a new validity period and only renews based on the validity period specified when the token is obtained.

Request

Request Example

POST /api/v1/token/`{LibraryId}`/`{AccessToken}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtain it after creating a media library in the media hosting console. See Create Media Library
String
Yes
AccessToken
Access token, see Generate Access Token
String
Yes

Response

Response code

Renewal successful, back HTTP 200 OK.

Response Body

{ "accessToken": "acctk01f7af4f07me88u2svxwp9tszuekqlprquuejxxxxxx", "expiresIn": 86400 }
Field description in response body:
Node Name (Keyword)
Description
Type
accessToken
Access token value
String
expiresIn
Valid duration of the access token, unit: seconds
Int

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

Ajuda e Suporte

Esta página foi útil?

comentários