---
title: "POST /users/{userId}/timeslots"
method: POST
path: "/users/{userId}/timeslots"
---

# POST /users/{userId}/timeslots

`POST /users/{userId}/timeslots`

## Request

- Base URL: `https://api.mamaearth.ca` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mamaearth.ca/users/{userId}/timeslots`
- Auth: none declared
- TypeScript: <https://skmtc.dev/mamaearth/apis/mama-earth-api/docs/users/:userId/timeslots/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` integer, required

## Request body

- object
  - `timeslotId` integer, required

## Response `200`

setSelectedTimeslotByDay 200 response

- OndTimeslot
  - `id` integer, required
  - `name` string, required
  - `sortOrder` integer, required
  - `orderLimit` integer, required
  - `dayId` 1 | 2 | 3 | 4 | 5 | 6 | 7, required: Represents the days of the week starting with Sunday as 1.
  - `startTime` string, partial-time, required
  - `endTime` string, partial-time, required
  - `deliveryFee` number, required
  - `active` boolean, required
  - `isAllDay` boolean, required

---

[API](https://skmtc.dev/mamaearth/apis/mama-earth-api.md) - [All operations](https://skmtc.dev/mamaearth/apis/mama-earth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mamaearth/apis/mama-earth-api/revisions/2693a8db8dbd?raw)
