> ## Documentation Index
> Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Event Date

> Add a date to an event.

The event's overall `start` and `end` are recalculated after the date is added.

## Path Parameters

**id** `integer` *required*

The ID of the event

## Request Body Parameters

**start** `string` *required*

Start of the date, `YYYY-MM-DD HH:MM` in the site timezone. See [Dates and times](https://docs-restapi.wplimit.com/api-reference/events/overview.md#dates-and-times).

**end** `string`

End of the date, `YYYY-MM-DD HH:MM` in the site timezone. Must be on or after `start`. Defaults to `start`.

## Example Request

```bash theme={null}
POST /wp-json/latepoint-api/v1/events/2/dates
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "start": "2026-12-07 09:00",
  "end": "2026-12-07 12:00"
}
```

## Response

Returns `201 Created`:

```json theme={null}
{
  "success": true,
  "message": "Event date created successfully",
  "data": {
    "id": 3,
    "event_id": 2,
    "start": "2026-12-07 09:00:00",
    "end": "2026-12-07 12:00:00",
    "start_utc": "2026-12-07 12:00:00",
    "end_utc": "2026-12-07 15:00:00"
  }
}
```

## Error Responses

| Status | Code | Description |
| - | - | - |
| `400` | `invalid_dates` | `start` is missing, or `end` is before `start` |
| `400` | `invalid_datetime` | A value is not in `YYYY-MM-DD HH:MM` format |
| `404` | `event_not_found` | The event does not exist |
| `422` | `save_error` | LatePoint could not save the date |
| `503` | `feature_disabled` | Events is disabled in LatePoint settings |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.