Skip to content

Create knowledge base article

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
contributorsArray of integers, (int64)
tagsArray of strings
contentobject
publicContentboolean
originTypestring(OriginType)
externalContentboolean
favouriteboolean
publishingDateinteger, (int64)

Epoch milliseconds (UTC)

externalThumbnailstring
mappedProjectIdstring
mappedCommunityMessageIdstring
partnerCustomPropertiesobject
clientCustomPropertiesobject
statusstring(ContentStatus)
additionalobject
shareConfigsArray of objects(AssetShareConfig_beans)
grantsArray of strings
folderMetadataobject(FolderMetadata)
nominationInfoobject(NominationInfo)
migrationDetailsobject(MigrationDetails)
localestring
countryCodesArray of strings
lngVariantsArray of strings
contentTemplateIdstring
languageSettingIdstring
statsobject(ContentStats)
curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/knowledgebase/article \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "contributors": [
      0
    ],
    "tags": [
      "string"
    ],
    "content": {
      "property1": {},
      "property2": {}
    },
    "publicContent": true,
    "originType": "string",
    "externalContent": true,
    "favourite": true,
    "publishingDate": 0,
    "communityPermalink": "string",
    "externalPermalink": "string",
    "externalThumbnail": "string",
    "mappedProjectId": "string",
    "mappedCommunityMessageId": "string",
    "partnerCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "clientCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "status": "string",
    "additional": {
      "property1": {},
      "property2": {}
    },
    "shareConfigs": [
      {
        "shareLevel": "string",
        "sharedWithIds": [
          "string"
        ],
        "permissions": [
          "string"
        ],
        "endDate": 0
      }
    ],
    "grants": [
      "string"
    ],
    "folderMetadata": {
      "serialVersionUID": {},
      "folderId": "string",
      "confidential": true
    },
    "nominationInfo": {
      "status": {
        "resultType": "string",
        "languageCode": "string",
        "createdAt": 0,
        "idStr": "string",
        "id": 0,
        "text": "string",
        "source": "string",
        "inReplyToStatusId": 0,
        "inReplyToStatusIdStr": "string",
        "inReplyToUserId": 0,
        "inReplyToUserIdStr": "string",
        "userId": 0,
        "userIdStr": "string",
        "userName": "string",
        "userScreenName": "string",
        "userBio": "string",
        "userLocation": "string",
        "inReplyToScreenName": "string",
        "profileUrl": "string",
        "profileImgUrl": "string",
        "retweetedStatus": {},
        "followersCount": 0,
        "friendsCount": 0,
        "statusCount": 0,
        "listedCount": 0,
        "favoriteCount": 0,
        "userCreatedTime": 0,
        "hashtags": [
          "string"
        ],
        "mentions": [
          "string"
        ],
        "toUserId": 0,
        "toUserIdStr": "string"
      },
      "nominatedByUserInfo": {
        "serialVersionUID": {},
        "communityUserId": "string",
        "fullName": "string",
        "profileImageUrl": "string",
        "username": "string",
        "color": "string",
        "bgColor": "string",
        "loginMethod": "string",
        "bio": "string",
        "profileUrl": "string",
        "userCreatedTime": "string",
        "signature": "string",
        "status": "string"
      },
      "nominatedPostId": "string",
      "kbContentId": "string",
      "projectId": "string",
      "insightHubNomination": true,
      "insightsHubNominationInfo": {
        "insightId": "string",
        "insightGroupConfigId": "string",
        "insightGroupConfigName": "string",
        "nominationTitle": "string",
        "nominationDescription": "string"
      },
      "nominationType": {},
      "aiRefinementScore": 0.1,
      "relatedKbContentIds": [
        "string"
      ],
      "kbaiNominationDetails": {
        "primaryContentId": "string",
        "groupedFactDetails": [
          {
            "groupId": "string",
            "groupedFactTitle": "string",
            "responses": [
              {}
            ]
          }
        ]
      },
      "recommendedTitle": "string",
      "recommendedContent": "string",
      "statusResolvedByUserId": 0,
      "displayName": "string",
      "hidden": true
    },
    "migrationDetails": {
      "migratedFrom": "string",
      "migratedId": "string",
      "migratedSlug": "string",
      "migrationKey": "string"
    },
    "locale": "string",
    "countryCodes": [
      "string"
    ],
    "lngVariants": [
      "string"
    ],
    "contentTemplateId": "string",
    "languageSettingId": "string",
    "stats": {
      "recommendCount": 0,
      "usageCount": 0,
      "ratingCount": 0,
      "ratingAvg": 0.1,
      "agentViewCount": 0,
      "communityViewCount": 0,
      "livechatViewCount": 0,
      "helpfulCount": 0,
      "notHelpfulCount": 0,
      "communityHelpfulCount": 0,
      "communityNotHelpfulCount": 0,
      "livechatHelpfulCount": 0,
      "livechatNotHelpfulCount": 0,
      "externalViewCount": 0,
      "externalHelpfulCount": 0,
      "externalNotHelpfulCount": 0
    }
  }'

Responses

Success

Bodyapplication/json
dataobject
errorsArray of objects(Error)
metadataobject(ResponseMetadata)
Response
{ "data": {}, "errors": [ { … } ], "metadata": {} }