Northcoders Logo     Northcoders News API
GitHubGitHub (opens in a new tab)LinkedIn Logo (opens in a new tab)
  • API Reference
  • Articles
    • Delete Articles by Id
    • Get Articles
    • Get Articles by Id
    • Patch Articles by Id
    • Post Articles
  • Articles Comments
    • Get Articles Comments
    • Post Articles Comments
  • Comments
    • Delete Comment by Id
    • Get Comment by Id
    • Get Comments
    • Patch Comment by Id
  • Topics
    • Get Topics
    • Post Topics
  • Users
    • Get Users
    • Get Users by Username
    • Post User
  • API Reference
  • Articles
    • Delete Articles by Id
    • Get Articles
    • Get Articles by Id
    • Patch Articles by Id
    • Post Articles
  • Articles Comments
    • Get Articles Comments
    • Post Articles Comments
      • Description
      • Request Body
      • Example Response
  • Comments
    • Delete Comment by Id
    • Get Comment by Id
    • Get Comments
    • Patch Comment by Id
  • Topics
    • Get Topics
    • Post Topics
  • Users
    • Get Users
    • Get Users by Username
    • Post User

On This Page

  • Description
  • Request Body
  • Example Response
Question? Give us feedback → (opens in a new tab)Edit this page
Articles Comments
Post Articles Comments

Description

This will post a new comment on a specified article provided the user makes a successful post request.

Request Body

Accepts the following keys:

  • username: String required
  • body: String required
{
    "username": "grumpy19",
    "description": "Another amazing article Mr Tickle!"
}

Example Response

{
	"comment_id": 303,
	"body": "Another amazing article Mr Tickle!",
	"article_id": 1,
	"author": "grumpy19",
	"votes": 0,
	"created_at": "2022-10-29T15:42:49.872Z"
}
Get Articles CommentsDelete Comment by Id

Docs
  • API Reference
           
Community
  • LinkedIn
  • Twitter
  • Dev.to