This method allows you to create a support centre article.
/api/v2/support_centres/add_article
This method can be accessed by account tokens.
support_centre
- ID or local domain of a support centre. (required)topic
- ID of a topic. (required)title
- the title of the article (required)content
- the permalink of the article (required)description
- the description of the articleposition
- the position of the articlepopular
- If the article is created successfully, you will receive a 201 Created
status and information about the article will be provided. If a validation error occurs, you will receive a 422 Unprocessable Entity
status along with an array of errors (see below)
{
"id": 12154,
"name": "test",
"permalink": "test",
"content": "ere",
"author": {
"id": 111,
"username": "danq",
"first_name": "Dan",
"last_name": "Quinney",
"job_title": "",
"avatar_url": "https://secure.gravatar.com/avatar/144bf62bac97854d81eb4e1eb02e748d?rating=PG&size={{size}}&d=mm"
},
"position": 3,
"draft": false,
"popular": false
}
{
"errors": {
"title": [
"can't be blank"
],
"content": [
"can't be blank"
],
"permalink": [
"can't be blank"
]
}
}