Hotspot API client session time parameter doesn't work

Hotspot API client session time parameter doesn't work

Hotspot API client session time parameter doesn't work
Hotspot API client session time parameter doesn't work
2025-07-07 20:06:48 - last edited 2025-07-11 07:33:26

I'm using the extPortal Hotspot API to authorize a client access to the WiFi, I provide an expiry time to the session via the time parameter, but this is ignored and the client gets some default value (11 days).

 

URL: `https://x.x.x.x/<id>/api/v2/hotspot/extPortal/auth`

Body: 

```

{
    "clientMac": "AA-AA-AA-AA-AA-AA",
    "apMac": "AA-AA-AA-AA-AA-AA",
    "ssidName": "Example WiFi",
    "radioId": "1",
    "site": "<id>",
    "time": 1751917511000000,
    "authType": 4
}

```

 

This should have created a session expiring UTC Monday, July 7, 2025 7:45:11 PM

But in the Omada UI I see the session expires Jul 28, 57541 08:43:32 pm

  0      
  0      
#1
Options
1 Accepted Solution
Re:Hotspot API client session time parameter doesn't work-Solution
2025-07-08 06:27:12 - last edited 2025-07-11 07:33:26

Hi  @_Ian_ 

 

The unit of time is milliseconds. I second equals 1000 milliseconds.

The value you set is too big.

 

Please adjust the time settings and test again.

 

BTW, below is a guide for your reference:

API and Code Sample for External Portal Server (Omada Controller 5.0.15 or above)

Recommended Solution
  0  
  0  
#2
Options
1 Reply
Re:Hotspot API client session time parameter doesn't work-Solution
2025-07-08 06:27:12 - last edited 2025-07-11 07:33:26

Hi  @_Ian_ 

 

The unit of time is milliseconds. I second equals 1000 milliseconds.

The value you set is too big.

 

Please adjust the time settings and test again.

 

BTW, below is a guide for your reference:

API and Code Sample for External Portal Server (Omada Controller 5.0.15 or above)

Recommended Solution
  0  
  0  
#2
Options