tencent cloud

Smart Media Hosting

Renew an Access Token

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백