Home docs switch Sun (System Update Check)
Post

Sun (System Update Check)

The sun server only has one function: providing the latest system update version. If the Switch detects that a system update is available, it downloads the system update from the atumn server.

The sun server only accepts requests with a valid device certificate.

Headers

HeaderDescription
Hostsun.hac.lp1.d4c.nintendo.net
User-AgentUser agent
Acceptapplication/json

User Agents

The user agent looks as follows: NintendoSDK Firmware/<firmware version>-<revision> (platform:NX; did:<device id>; eid:lp1). The firmware version and revision number are obtained from the system version title.

Here is an example: NintendoSDK Firmware/15.0.0-4.0 (platform:NX; did:6265ca40780b1c0d; eid:lp1)

Methods

GET /v1/system_update_meta

ParamDescription
device_idDevice id

Response on success:

FieldDescription
timestampTime at which metadata was updated (this happens once every 4 or 5 minutes)
system_update_metasArray (see below)

The system_update_metas array has exactly one entry, with the following fields:

FieldDescription
title_idLatest system update title id
title_versionLatest system update title version

Example:

1
2
3
4
GET /v1/system_update_meta?device_id=6265ca40780b1c0d HTTP/1.1
Host: sun.hac.lp1.d4c.nintendo.net
User-Agent: NintendoSDK Firmware/17.0.0-6.0 (platform:NX; did:6265ca40780b1c0d; eid:lp1)
Accept: application/json
1
2
3
4
5
6
7
8
9
HTTP/1.1 200 OK
Content-Type: application/json
Server: Apache
Content-Length: 107
Date: Sat, 21 Oct 2023 20:36:08 GMT
x-nintendo-akamai-reference-id: 0.902e0388.1697920568.236fe13
Connection: keep-alive

{"timestamp":1697920335,"system_update_metas":[{"title_id":"0100000000000816","title_version":1140851708}]}

Errors

On error, the server sends the following response:

FieldDescription
errorError info (see below)

The error info has the following fields:

FieldDescription
codeError code
messageError message

Known Errors

StatusCodeMessage
404000-5700Not Found
Contents