---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Unregister/remove a session from the bookmark

This API is used to unregister a session or remove a session from the bookmark. 

To call this API you need to send `sessionId` and `userId` in the request body. 

This API can be used by authenticated users only, and it will require super admin/event admin/event staff/attendee level access.

Here is the description of response attributes, which returns to the form of JSON.

This API Returns a void response with 200 status if the API executed successfully.

Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Error Code
      </th>

      <th>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        400
      </td>

      <td>
        The request could not be understood by the server due to malformed syntax.
      </td>
    </tr>

    <tr>
      <td>
        401
      </td>

      <td>
        You are not authorized to view the resource.
      </td>
    </tr>

    <tr>
      <td>
        403
      </td>

      <td>
        Accessing the resource you were trying to reach is forbidden.
      </td>
    </tr>

    <tr>
      <td>
        404
      </td>

      <td>
        The resource you were trying to reach is not found.
      </td>
    </tr>

    <tr>
      <td>
        4040200
      </td>

      <td>
        Event Not Found
      </td>
    </tr>

    <tr>
      <td>
        4010101
      </td>

      <td>
        Not authorized
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/events/{eventurl}/user-session/register/event-ticket/{id}": {
      "delete": {
        "summary": "Unregister/remove a session from the bookmark",
        "description": "This API is used to unregister a session or remove a session from the bookmark. \n\nTo call this API you need to send `sessionId` and `userId` in the request body. \n\nThis API can be used by authenticated users only, and it will require super admin/event admin/event staff/attendee level access.",
        "operationId": "user-unregister-event-ticket-id",
        "parameters": [
          {
            "name": "eventurl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "Unique event ticketing ID",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "eventId": {
                    "type": "integer",
                    "description": "Pass the event id.",
                    "format": "int64"
                  },
                  "sessionId": {
                    "type": "integer",
                    "description": "Pass the session id registered.",
                    "format": "int64"
                  },
                  "userId": {
                    "type": "integer",
                    "description": "Pass the user Id registered in the session.",
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```