Skip to content

Update knowledge base article(s)

Request

Security
bearerAuth and apiKeyAuth
Query
contentIdstring

Single content id; when set, only this article is updated

Bodyapplication/jsonrequired
contentIdsArray of strings
updateLngVariantsboolean
idVersionMapobject
updateActionsArray of strings(KnowledgeBaseUpdateAction)
Items Enum:"SYNC_TAGS""FOLDER_METADATA""CONTENT""SYNC_INLINE_COMMENT""STATUS_UPDATE_ONLY""STATUS""RESTORE_ARCHIVED""MARK_IN_ACTIVE""STATS""INC_AGENT_VIEW_COUNT"
esRefreshInlineboolean
updateVariantsboolean
restrictedUpdateboolean
baseLngContentUpdatedboolean
syncedTagsArray of strings
folderMetadataobject(FolderMetadata)
contentobject
statusstring(ContentStatus)
statsobject(ContentStats)
helpfulCountinteger, (int32)
notHelpfulCountinteger, (int32)
lngVariantsArray of strings
inactiveLngVariantsArray of strings
inactiveLngVariantsToRestoreArray of strings
relatedFolderIdsArray of strings
relatedFolderIdsToAddArray of strings
relatedFolderIdsToRemoveArray of strings
hasConditionalSectionboolean
localestring
countryCodesArray of strings
countryCodesToSyncInBaseContentobject
countryVariantsArray of strings
versionToRestoreinteger, (int32)
restoreBaseWithLngVariantsDTOobject

Unresolved type (RestoreBaseWithLngVariantsDTO)

agentViewCountinteger, (int32)
communityViewCountinteger, (int32)
livechatViewCountinteger, (int32)
externalViewcountinteger, (int32)
publishScheduledDateinteger, (int64)
publishReminderDateinteger, (int64)
publishingDateinteger, (int64)

Epoch milliseconds (UTC)

unPublishScheduledDateinteger, (int64)
unPublishReminderDateinteger, (int64)
archiveScheduleDateinteger, (int64)
archiveScheduleStatusstring(ScheduledStatus)
timeZonestring
selectedCustomPropertiesobject
migrationDetailsobject(MigrationDetails)
approvalDetailsobject(ApprovalDetails)
approvalActionRequestobject(KBApprovalActionRequest)
ownerUserIdinteger, (int64)
variantContentDTOobject(KnowledgeBaseContentDTO)
countryVariantDTOobject

Unresolved type (CountryVariantDTO)

addPublishedCountryVariantsobject
removePublishedCountryVariantsArray of strings
mapVariantsboolean
contributorsArray of integers, (int64)
additionalToAddobject
lngVariantOriginTypestring(OriginType)
sourceContentIdstring
baseLocalestring
processTypestring
processUniqueIdstring
curl -i -X PUT \
  'https://api3.sprinklr.com/prod/api/v3/knowledgebase/article?contentId=string' \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "contentIds": [
      "string"
    ],
    "updateLngVariants": true,
    "idVersionMap": {
      "property1": 0,
      "property2": 0
    },
    "updateActions": [
      "SYNC_TAGS"
    ],
    "esRefreshInline": true,
    "updateVariants": true,
    "restrictedUpdate": true,
    "baseLngContentUpdated": true,
    "syncedTags": [
      "string"
    ],
    "folderMetadata": {
      "serialVersionUID": {},
      "folderId": "string",
      "confidential": true
    },
    "content": {
      "property1": {},
      "property2": {}
    },
    "status": "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
    },
    "helpfulCount": 0,
    "notHelpfulCount": 0,
    "lngVariants": [
      "string"
    ],
    "inactiveLngVariants": [
      "string"
    ],
    "inactiveLngVariantsToRestore": [
      "string"
    ],
    "relatedFolderIds": [
      "string"
    ],
    "relatedFolderIdsToAdd": [
      "string"
    ],
    "relatedFolderIdsToRemove": [
      "string"
    ],
    "hasConditionalSection": true,
    "locale": "string",
    "countryCodes": [
      "string"
    ],
    "countryCodesToSyncInBaseContent": {
      "property1": "string",
      "property2": "string"
    },
    "countryVariants": [
      "string"
    ],
    "versionToRestore": 0,
    "restoreBaseWithLngVariantsDTO": {},
    "agentViewCount": 0,
    "communityViewCount": 0,
    "livechatViewCount": 0,
    "externalViewcount": 0,
    "publishScheduledDate": 0,
    "publishReminderDate": 0,
    "publishingDate": 0,
    "unPublishScheduledDate": 0,
    "unPublishReminderDate": 0,
    "archiveScheduleDate": 0,
    "archiveScheduleStatus": "string",
    "timeZone": "string",
    "selectedCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "migrationDetails": {
      "migratedFrom": "string",
      "migratedId": "string",
      "migratedSlug": "string",
      "migrationKey": "string"
    },
    "approvalDetails": {
      "currentTaskId": 0,
      "currentTaskStatus": "string",
      "currentTaskOwnerId": 0,
      "currentTaskAssigneeType": "string",
      "currentTaskAssigneeId": 0,
      "provisionedUsersForApprovalQueue": [
        0
      ],
      "approvalPathId": "string",
      "approvalProcessStatus": {}
    },
    "approvalActionRequest": {
      "taskId": 0,
      "taskVersion": 0,
      "comment": "string"
    },
    "ownerUserId": 0,
    "externalPermalink": "string",
    "variantContentDTO": {
      "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
      }
    },
    "countryVariantDTO": {},
    "addPublishedCountryVariants": {
      "property1": "string",
      "property2": "string"
    },
    "removePublishedCountryVariants": [
      "string"
    ],
    "mapVariants": true,
    "contributors": [
      0
    ],
    "additionalToAdd": {
      "property1": {},
      "property2": {}
    },
    "lngVariantOriginType": "string",
    "sourceContentId": "string",
    "baseLocale": "string",
    "processType": "string",
    "processUniqueId": "string"
  }'

Responses

Success

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