Party Controller

Reject Invite To Party

Path: /api/party/invite/reject

Method: POST

Example Http Request

POST /api/party/invite/reject HTTP/1.1
Content-Type: application/json
Content-Length: 492
Host: localhost:8080

{"notificationType":null,"fromPlayerId":"test-player-91085868-4cf9-428c-86c6-cf1c85396472","toPlayerId":null,"partyInfo":{"timestamp":null,"partyId":"eeb1dbe9-9354-406e-943f-ac97e6f1c60f","hostPlayerId":null,"partyName":null,"accessType":null,"partyPeople":null,"partyStatus":null,"hostPeerId":null,"hostAudioStatus":null,"hostPartyCallStatus":null,"partyActivities":null,"partyApps":null},"fromPlayerPeerId":null,"textMessage":null,"dataMessage":null,"sessionId":null,"rejectedPartyId":null}

Example Http Response

HTTP/1.1 403 Forbidden
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 258

{"status":"FORBIDDEN","timestamp":"03-12-2025 12:36:58","message":"Party Service Exception","debugMessage":null,"subErrors":[{"object":"com.ja.movements.service.DistributedPartyService","message":"User declined an invite to a party without being invited."}]}

Example Curl Request

$ curl 'http://localhost:8080/api/party/invite/reject' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{"notificationType":null,"fromPlayerId":"test-player-91085868-4cf9-428c-86c6-cf1c85396472","toPlayerId":null,"partyInfo":{"timestamp":null,"partyId":"eeb1dbe9-9354-406e-943f-ac97e6f1c60f","hostPlayerId":null,"partyName":null,"accessType":null,"partyPeople":null,"partyStatus":null,"hostPeerId":null,"hostAudioStatus":null,"hostPartyCallStatus":null,"partyActivities":null,"partyApps":null},"fromPlayerPeerId":null,"textMessage":null,"dataMessage":null,"sessionId":null,"rejectedPartyId":null}'

Party Controller Footer