Create an Article

Description

You can use this API to create a new article.

Requested Payload:

  • category_id (Mandatory):  You can specify the category id with which the article can be associated.
  • title (Mandatory): The title of the article
  • content (Mandatory): The HTML content available in the article
  • department_id (Mandatory): To specify the department with which the article is associated.
  • published (Mandatory): To specify the publishing status of the article

OAuth Scope:

SalesIQ.articles.CREATE

URL

Copiedhttps://{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/{screenname}/articles

Example

Copiedhttps://salesiq.zoho.com/api/v2/zylker-inc/articles	

Payload

Copied{
  "department_id": "1234567897654",
  "title": "Applying Promo/coupon code",
  "published": "true",
  "content": "<div>A coupon is an image with a message that you give to a user when he/she has taken part in the promotion.<br/></div>",
  "category_id": "360000015602135"
}

Success Response:

Copied{
  "url": "/api/v2/zylker-inc/articles",
  "object": "articles",
  "data": {
    "modified_time": "1569590373027",
    "category": {
      "name": "category",
      "id": "360000015602135"
    },
    "id": "53400000000368001",
    "modifier": {
      "name": "Patricia",
      "id": "53400000000002001"
    },
    "creator": {
      "name": "Patricia",
      "id": "53400000000002001"
    },
    "stats": {
      "viewed": "0",
      "used": "0",
      "liked": "0",
      "disliked": "0"
    },
    "content": "<div>A coupon is an image with a message that you give to a user when he/she has taken part in the promotion.<br/></div>",
    "enabled": true,
    "department_id": "1234567897654",
    "published": true,
    "title": "Applying Promo/coupon code",
    "created_time": "1569590373027"
  }
}