Start a conversation

Using the Occasion RSVP (a reply to an invitation)

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.

  1. Open the occasion board.
  2. Open the occasion.
  3. Identify the ID of the occasion from the URL.
  4. 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.

  1. Open the occasion board.
  2. Open the occasion.
  3. Identify the ID of the occasion from the URL.
  4. 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.

  1. Open the occasion board.
  2. Open the occasion.
  3. Identify the ID of the occasion from the URL.
  4. 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
        }
    }
} 
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments