Added in 23.10.
In this guide, you will learn how to add, update, and delete RSVP to an occasion.
Note: You cannot RSVP to a completed occasion.
Create an Occasion RSVP
You can RSVP to an occasion either by attending, not attending, or maybe.
- Open the occasion board.
- Open the occasion.
- Identify the ID of the occasion from the URL.
- Make a
createOccasionRSVP
GraphQL Request.
Here is the example request for responding to an occasion RSVP.
mutation createRSVP {
createRsvpResponseForOccasion(occasionId: "message:3619", rsvpResponse: YES) {
errors {
__typename
... on RsvpOccasionValidationError {
fields
key
message
}
... on RsvpResponseValidationError {
fields
key
message
}
}
result {
id
rsvpResponse
user {
id
login
}
}
}
}
Here is the response to the request.
{
"data": {
"createRsvpResponseForOccasion": {
"errors": null,
"result": {
"id": "rsvp:3619",
"rsvpResponse": "YES",
"user": {
"id": "user:642",
"login": "kh-vandana"
}
}
}
}
}
Update Occasion RSVP
You can update the occasion RSVP for your occasion by making the GraphQL Request.
- Open the occasion board.
- Open the occasion.
- Identify the ID of the occasion from the URL.
- Make an
updateOccasionRSVP
GraphQL Request.
mutation updateRsvp {
updateRsvpResponseForOccasion(
occasionId: "message:3559",
rsvpResponse: MAYBE
) {
errors {
__typename
... on RsvpOccasionValidationError {
fields
key
message
}
... on RsvpResponseValidationError {
fields
key
message
}
}
result {
id
rsvpResponse
user {
id
login
}
}
}
}
Here is the response to the GraphQL request.
{
"data": {
"updateRsvpResponseForOccasion": {
"errors": null,
"result": {
"id": "rsvp:3559",
"rsvpResponse": "MAYBE",
"user": {
"id": "user:25",
"login": "annu"
}
}
}
}
}
Delete Occasion RSVP
You can delete the occasion RSVP for your occasion by making the GraphQL Request.
- Open the occasion board.
- Open the occasion.
- Identify the ID of the occasion from the URL.
- Make a
deleteOccasionRSVP
GraphQL Request.
mutation deleteRsvp {
deleteRsvpResponseForOccasion(
occasionId: "message:3559",
userId: "user:642"
) {
errors {
__typename
... on RsvpOccasionValidationError {
fields
key
message
}
... on RsvpResponseValidationError {
fields
key
message
}
}
result
}
}
Here is the response to the GraphQL request.
{
"data": {
"deleteRsvpResponseForOccasion": {
"errors": null,
"result": true
}
}
}
ATLAS
Comments