---
title: "Change a posting slot"
method: PATCH
path: "/posting-slots/{id}"
tags: ["Posts"]
---

# Change a posting slot

`PATCH /posting-slots/{id}`

## Request

- Base URL: `https://www.sociahive.com/api/v1`
- URL: `https://www.sociahive.com/api/v1/posting-slots/{id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2 (authorization code, authorization URL `/api/oauth/authorize`, token URL `/api/oauth/token`, scopes: `posts:write`)

## Path parameters

- `id` string, required: MongoDB ObjectId (24-character hex string)

## Request body

- UpdatePostingSlotRequest
  - `account_ids` string[]
  - `weekday` integer
  - `minutes` integer: Minutes after local midnight. Or send `time`.
  - `time` string: "HH:mm", 24-hour. Or send `minutes`.
  - `timezone` string

## Response `200`

Posting slot changed

- object
  - `success` true, required
  - `data` PostingSlot, required
    - `id` string, required: MongoDB ObjectId (24-character hex string)
    - `account_ids` string[], required: Connected accounts this slot posts for.
    - `weekday` integer, required: 0 = Sunday … 6 = Saturday, in `timezone`.
    - `minutes` integer, required: Minutes after local midnight (570 = 09:30).
    - `timezone` string, required: IANA zone. The slot keeps its wall-clock time across daylight-saving changes: a time the clocks skip moves to just after the gap, a repeated time uses its first occurrence.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request — invalid parameters
- `401`: Authentication required — provide X-API-Key or Bearer token
- `403`: Insufficient scope for this operation
- `404`: Posting slot not found
- `409`: The same slot exists
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/sociahive/apis/sociahive-api.md) · [All operations](https://skmtc.dev/sociahive/apis/sociahive-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sociahive/apis/sociahive-api/revisions/791b8548d288?raw)
