Body
Required
Article to create
-
article
object Required
curl \
--request POST '/api/articles' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"article":{"title":"string","description":"string","body":"string","tags":["string"]}}'
{
"article": {
"title": "string",
"description": "string",
"body": "string",
"tags": [
"string"
]
}
}
{
"article": {
"slug": "how-to-train-your-dragon",
"title": "How to train your dragon",
"description": "Ever wonder how?",
"body": "It takes a Jacobian",
"tags": [
"dragons",
"training"
],
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"favorited": false,
"favoritesCount": 42,
"author": {
"bio": "I work at State Farm.",
"image": "https://api.realworld.io/images/smiley-cyrus.jpg",
"username": "jake",
"following": false
}
}
}
{
"errors": {
"body": [
"string"
]
}
}