Refresh a session
Refreshes a session to extend its expiration time.
API description
Refresh Session
Prerequisites
You have integrated the Intelligent Media Production SDK. For previous versions, see Previous Version SDK Reference.
Authorization method
AccessKey pair (AK/SK). For information about how to obtain an AK/SK pair, see API authorization.
Endpoint
https://openai.edu-aliyun.comRequest path
/scc/spRefreshSessionRequest parameters
Name | Type | Required | Description | Example |
apiToken | string | Yes | The token. | 01j1w6cxqz**** |
subProduct | string | No | Subproducts: sd_webui, comfyui_api | Default: sd_webui. This value refreshes the WebUI session. |
gadgetId | string | No | The gadget ID. | 01jddpbjd**** |
expiredInSeconds | long | No | The session expiration time in seconds. The value is added to the current time. Default value: 3600. | 3600 |
Response parameters
Name | Type | Description |
data | object | The returned data. |
Data parameters
Name | Type | Description |
expiredAt | long | The session expiration time. This is a 13-digit UNIX timestamp. |
apiToken | string | Token |
sessionUrl | string | The accessible URL. |
expiredInSeconds | long | The remaining validity period of the session in seconds. |