Users / Profile
Create a schedule
POST
/users/me/schedulesRegister a schedule. When linked to an event, overlapping meeting slots for that event become unavailable.
| Auth | Login required |
|---|
Request body
eventIdstringoptionalEvent ID to link the schedule to.
startAtstringrequiredStart date and time (ISO 8601).
endAtstringrequiredEnd date and time (ISO 8601). Must be after startAt.
descriptionstringoptionalDescription. Visible only to the owner.
Response
| Field | Type | Description |
|---|---|---|
schedule | Schedule | The created schedule. |
Request
curl https://api.4s.link/users/me/schedules \-X POST \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"eventId": "ev1a2b3c-...","startAt": "2026-06-01T03:00:00.000Z","endAt": "2026-06-01T04:00:00.000Z","description": "打ち合わせ"}'
Example response
{"schedule": {"id": "sc1a2b3c-...","startAt": "2026-06-01T03:00:00.000Z","endAt": "2026-06-01T04:00:00.000Z","description": "打ち合わせ"}}