> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/api/api-endpoints/news/api-news-entry.md).

# /api/news/entry

## GET /api/news/entry

> Get news entry

```json
{"openapi":"3.0.2","info":{"title":"API Specification","version":"v1"},"tags":[{"name":"/api/news/entry"}],"security":[{"api-key":[],"api-username":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"get_news_entry":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["newsid"]}}},"paths":{"/api/news/entry":{"get":{"description":"Get news entry","tags":["/api/news/entry"],"parameters":[{"name":"newsid","in":"query","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"success","content":{"text/php":{"schema":{"$ref":"#/components/schemas/get_news_entry"}},"application/json":{"schema":{"$ref":"#/components/schemas/get_news_entry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/get_news_entry"}}}}}}}}}
```

## POST /api/news/entry

> Add news entry

```json
{"openapi":"3.0.2","info":{"title":"API Specification","version":"v1"},"tags":[{"name":"/api/news/entry"}],"security":[{"api-key":[],"api-username":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"post_news_entry":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["headline","news_section_id","publish","body"]}}},"paths":{"/api/news/entry":{"post":{"description":"Add news entry","tags":["/api/news/entry"],"parameters":[{"name":"headline","in":"query","schema":{"type":"string"},"required":true},{"name":"news_section_id","in":"query","schema":{"type":"integer"},"required":true},{"name":"publish","in":"query","schema":{"type":"string"},"required":true},{"name":"body","in":"query","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"success","content":{"text/php":{"schema":{"$ref":"#/components/schemas/post_news_entry"}},"application/json":{"schema":{"$ref":"#/components/schemas/post_news_entry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/post_news_entry"}}}}}}}}}
```

## DELETE /api/news/entry

> Delete news entry

```json
{"openapi":"3.0.2","info":{"title":"API Specification","version":"v1"},"tags":[{"name":"/api/news/entry"}],"security":[{"api-key":[],"api-username":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"delete_news_entry":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["newsid"]}}},"paths":{"/api/news/entry":{"delete":{"description":"Delete news entry","tags":["/api/news/entry"],"parameters":[{"name":"newsid","in":"query","schema":{"type":"integer"},"required":true}],"responses":{"200":{"description":"success","content":{"text/php":{"schema":{"$ref":"#/components/schemas/delete_news_entry"}},"application/json":{"schema":{"$ref":"#/components/schemas/delete_news_entry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/delete_news_entry"}}}}}}}}}
```

## PATCH /api/news/entry

> Edit news entry

```json
{"openapi":"3.0.2","info":{"title":"API Specification","version":"v1"},"tags":[{"name":"/api/news/entry"}],"security":[{"api-key":[],"api-username":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"api-key"}},"schemas":{"patch_news_entry":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["newsid","headline","news_section_id","publish","body"]}}},"paths":{"/api/news/entry":{"patch":{"description":"Edit news entry","tags":["/api/news/entry"],"parameters":[{"name":"newsid","in":"query","schema":{"type":"integer"},"required":true},{"name":"headline","in":"query","schema":{"type":"string"},"required":true},{"name":"news_section_id","in":"query","schema":{"type":"integer"},"required":true},{"name":"publish","in":"query","schema":{"type":"string"},"required":true},{"name":"body","in":"query","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"success","content":{"text/php":{"schema":{"$ref":"#/components/schemas/patch_news_entry"}},"application/json":{"schema":{"$ref":"#/components/schemas/patch_news_entry"}},"application/xml":{"schema":{"$ref":"#/components/schemas/patch_news_entry"}}}}}}}}}
```
