Cognitives

Cognitives.io Documentation

Welcome to the Cognitives developer hub. You'll find comprehensive guides and documentation to help you start working with Cognitives as quickly as possible, as well as support if you get stuck. Let's jump right in!

pinUnpinArticle

Function used to pin or unpin and article.

Example Usage

$.fn.pinUnpinArticle({
                articleId: 1,
                isPinned: 1,
                position: 4,
                isSocialArticle: 0,
                onSuccess: function (data) {
                    // handle the response as per your requirements
                },
                beforeSend: function (obj) {
                }
            });

Parameters

Parameter
type
Required
Description

articleId

string

yes

GUID of the article

isPinned

int

yes

Pin status of the article

position

int

yes

Position of article

isSocialArticle

int

yes

Whether the article is social or not

Response Example

{"success":1}

pinUnpinArticle