---
updatedAt: 2026-04-23T05:40:30.000Z
---

# Creates an event attendance

Creates an event attendance with the specified details.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/event_attendances": {
      "post": {
        "summary": "Creates an event attendance",
        "tags": [
          "Event Attendances"
        ],
        "description": "Creates an event attendance with the specified details.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "event attendance created"
          },
          "404": {
            "description": "event not found"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the Mobilize event",
                    "nullable": false
                  },
                  "event_session_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the specific event session",
                    "nullable": false
                  },
                  "user_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the user attending to the event",
                    "nullable": false
                  },
                  "attended": {
                    "type": "boolean",
                    "description": "Indicates if the user attended the event",
                    "nullable": false
                  }
                },
                "required": [
                  "event_id",
                  "event_session_id",
                  "user_id",
                  "attended"
                ]
              }
            }
          },
          "required": true,
          "description": "Data containing event attendance information"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.solidarity.tech/v1",
      "variables": {
        "defaultHost": {
          "default": "api.solidarity.tech/v1"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```