---
title: "POST /admin/announcements"
method: POST
path: "/admin/announcements"
tags: ["announcements"]
---

# POST /admin/announcements

`POST /admin/announcements`

## Request

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

Creates a new announcement (admin only)

## Request body

- CreateUpdateAnnouncementRequest: Admin Announcements
  - `content` string
  - `description` string
  - `group_ids` integer[]
  - `published` boolean
  - `published_at` string
  - `title` string
  - `user_ids` integer[]

## Response `201`

- Announcement
  - `content` string
  - `created` string
  - `created_by` integer
  - `deleted` boolean
  - `deleted_at` string
  - `deleted_by` integer
  - `description` string
  - `id` integer
  - `published_at` string
  - `published_by` integer
  - `title` string
  - `updated` string
  - `updated_by` integer

## Other responses

- `400`: Invalid input or state means you're bad
- `401`: Unauthorized error
- `default`: An unknown, unexpected 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)
