Home docs switch Online Play Invitations
Post

Online Play Invitations

URL: https://app.lp1.five.nintendo.net

This server manages online play invitations.

Methods

MethodURL
PATCH/v1/invitations
POST/v1/invitation_groups
GET/v1/invitation_groups/<id>
GET/v1/users/<id>/invitations/inbox
PATCH/v1/users/<id>/invitations/mark_as_read

GET /v1/users/<id>/invitations/inbox

This method returns incoming invitations. It takes two query parameters:

ParamDescription
fieldsComma-separated list of fields that should be returned by the server
readSpecifies whether the server should return only unread invitation (false) or all invitations (true)

The friends sysmodule currently either provides no parameters or fields=count&read=false.

Response on success:

FieldDescription
countTotal number of invitations
itemsInvitation list

An invitation has the following fields:

FieldDescription
idInvitation id generated by server (integer)
invitation_group_idInvitation group id generated by server (integer)
sender_idUser id of sender (16 hex digits)
application_idTitle id from which the invitation was sent (16 hex digits)
application_group_idPresence group id for the current title (usually the same as the title id)
application_id_matchUnknown (always false)
application_dataGame-specific information (base64)
readWhether the invitation is marked as read (boolean)
created_atCreation timestamp
updated_atUpdate timestamp

Errors

On error, the server sends the following response:

FieldDescription
errorError information

The error information is encoded like this:

FieldDescription
codeError code (string with 4 digits)
messageError message

Known Errors

CodeStatusMessage
0001??
0002400Invalid parameter.
0003404Invalid request URI.
0004??
0005??
0006401Unauthorized.
0007??
0008??
0009??
0010404Resource not found.
0011400Application data is too large.
Contents