---
title: "POST /special-hours"
method: POST
path: "/special-hours"
tags: ["specialHours"]
---

# POST /special-hours

`POST /special-hours`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/special-hours`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/special-hours/post.ts> (a function with typed inputs; its response is checked against the schema)

Create special hours for the specified date

## Request body

- SpecialHour: ─────────────────────────────────────────────────────────────────────────── Special Hours ───────────────────────────────────────────────────────────────────────────
  - `created` string
  - `created_from_id` integer
  - `dropoff` SpecialHourDropoff
    - `end_time` integer
    - `start_time` integer
    - `unavailable` boolean
  - `end_date` string
  - `id` integer
  - `location_id` integer, nullable
  - `name` string
  - `owner_id` integer
  - `pickup` SpecialHourPickup
    - `end_time` integer
    - `start_time` integer
    - `unavailable` boolean
  - `repeats` boolean
  - `start_date` string
  - `updated` string
  - `weekdays` string[]: DBStringSlice is a []string with database conversion methods

## Response `200`

- SpecialHour: ─────────────────────────────────────────────────────────────────────────── Special Hours ───────────────────────────────────────────────────────────────────────────
  - `created` string
  - `created_from_id` integer
  - `dropoff` SpecialHourDropoff
    - `end_time` integer
    - `start_time` integer
    - `unavailable` boolean
  - `end_date` string
  - `id` integer
  - `location_id` integer, nullable
  - `name` string
  - `owner_id` integer
  - `pickup` SpecialHourPickup
    - `end_time` integer
    - `start_time` integer
    - `unavailable` boolean
  - `repeats` boolean
  - `start_date` string
  - `updated` string
  - `weekdays` string[]: DBStringSlice is a []string with database conversion methods

## Other responses

- `400`: Invalid input or state means you're bad
- `401`: Unauthorized error

---

[API](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation.md) - [All operations](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/revisions/f0cf8f605ea0?raw)
