> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KnowledgeEntryActionItem

> What a bulk knowledge action did with one of the entries it names.

**article** `[KnowledgeArticle](/docs/api-reference/v3/reference/commerce-agent/knowledge-article)`

The article the id names, as it is after the action. Null for a help center link, an entry not found, or an article the action removed.

**fields**

**changes** `[KnowledgeArticleChangeConnection!](/docs/api-reference/v3/pagination)` *required*

Every change to this article and who made it, newest first, including staged drafts and removals.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns changes after it.

**before** `String`

Backward pagination cursor — returns changes before it.

**first** `Int`

Forward pagination: returns the first N changes (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N changes (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[KnowledgeArticleChangeEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[KnowledgeArticleChange!\]!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-change)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**content** `String!` *required*

The live article body as authored.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the article was created.

**draft** `[KnowledgeArticleDraft](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-draft)`

Changes staged by the API and not yet published. Null when nothing is staged. Reading it needs a token with `commerce_agent_knowledge_read`.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**content** `String!` *required*

The body the article gets on publish.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the draft was first staged.

**deletesArticle** `Boolean!` *required*

True when publishing removes the article. The other fields then repeat the article as it was when the removal was staged.

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the article stops being retrievable after publish. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the article becomes retrievable after publish, if `status` is ACTIVE. Null means immediately.

**referencedArticleIds** `[ID!]!` *required*

The ids of the knowledge articles the article cites after publish, as accepted by `referencedArticleIds` on the write inputs.

**referencedProductFamilyIds** `[ID!]!` *required*

The ids of the product families the article cites after publish, as accepted by `referencedProductFamilyIds` on the write inputs.

**revision** `String!` *required*

Identifies this draft's content. Pass it as `expectedRevision` to `knowledgeArticlePublish`; it changes whenever the draft does.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

The status the article gets on publish.

**title** `String!` *required*

The title the article gets on publish.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the draft was last changed.

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the live article stops being retrievable. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the live article becomes retrievable, if `status` is ACTIVE. Null means immediately.

**id** `ID!` *required*

The id of this knowledge article.

**origin** `[KnowledgeArticleOrigin!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-origin)` *required*

How this article was created. Immutable after create.

**productFamilies** `[ProductFamilyConnection!](/docs/api-reference/v3/pagination)` *required*

Product families this article cites.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[ProductFamilyEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[ProductFamily!\]!](/docs/api-reference/v3/reference/catalog/product-family)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**referencedArticles** `[KnowledgeArticleConnection!](/docs/api-reference/v3/pagination)` *required*

Other knowledge articles this article cites.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[KnowledgeArticleEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[KnowledgeArticle!\]!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

Whether Commerce Agent may retrieve this live article. Combine with the effective window.

**title** `String!` *required*

The live merchant-facing title of the article.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the live article body was last edited.

**usageCount** `Int!` *required*

How many messages Commerce Agent used this article in. Unsent draft replies don't count. This is the number the merchant app's Knowledge page shows as Uses.

**whenToUse** `String!` *required*

The text Commerce Agent matches a shopper's question against to pick this article. It is generated from the live title and content, so it is read-only. A new article starts with its title. After an edit, the previous text stays until it is regenerated.

**code** `String`

Why the item was skipped or failed: NOT\_FOUND, the store has no entry with this id, or it was removed (another store's included). Null when it is OK.

**helpCenterLink** `[KnowledgeHelpCenterLink](/docs/api-reference/v3/reference/commerce-agent/knowledge-help-center-link)`

The help center link the id names, as it is after the action. Null for an article, an entry not found, or a link the action removed.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the article was added to knowledge.

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the article stops being retrievable. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the article becomes retrievable, if `status` is ACTIVE. Null means immediately.

**helpCenterArticle** `[HelpCenterArticle](/docs/api-reference/v3/reference/support/help-center-article)`

The linked article. Null once it's deleted.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**collections** `[\[HelpCenterCollectionSummary!\]!](/docs/api-reference/v3/reference/support/help-center-collection-summary)` *required*

The collections that list the article, by title, each once. These are the collections shoppers find it under and whose `articles` include it. Empty when none lists it.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**html** `String!` *required*

The article body as HTML, as saved in the dashboard's editor. Shoppers see it sanitized. Empty when none is saved.

**id** `ID!` *required*

m\_hca\_… id, the article id in the dashboard and in agent knowledge.

**lastEditedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the article was last saved (the dashboard's Last updated). Null for an article never saved since that was recorded.

**published** `Boolean!` *required*

Whether the article itself is published (Published, not Draft, in the dashboard).

**title** `String!` *required*

The article's title. Empty when none is set.

**visibleToShoppers** `Boolean!` *required*

Whether shoppers see the article: it is published and listed by a collection shoppers see (`HelpCenterCollection.visibleToShoppers`).

**helpCenterCollection** `[HelpCenterCollection](/docs/api-reference/v3/reference/support/help-center-collection)`

The collection the article is in; unpublishing it unlinks the article. Null once it's deleted.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**articles** `[\[HelpCenterArticle!\]!](/docs/api-reference/v3/reference/support/help-center-article)` *required*

The collection's articles in the order the merchant arranged them, each once. Includes drafts.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**description** `String!` *required*

The collection's description. Empty when none is set.

**id** `ID!` *required*

m\_hcc\_… id, the collection id in the dashboard.

**pages** `[\[HelpCenterPageSummary!\]!](/docs/api-reference/v3/reference/support/help-center-page-summary)` *required*

The pages that list this collection, by title. Empty for an unassigned collection.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**published** `Boolean!` *required*

Whether the collection itself is published.

**title** `String!` *required*

The collection's title.

**visibleToShoppers** `Boolean!` *required*

Whether shoppers see the collection: the store's help desk is on, the collection is published, a published page lists it, and it lists at least one published article.

**helpCenterPage** `[HelpCenterPage](/docs/api-reference/v3/reference/support/help-center-page)`

The help center page the article was linked from; unpublishing it unlinks the article. Null once it's deleted.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**collections** `[\[HelpCenterCollection!\]!](/docs/api-reference/v3/reference/support/help-center-collection)` *required*

The page's collections in the order the merchant arranged them, each once. Includes unpublished ones.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**description** `String`

The page's description. Null when none is set.

**id** `ID!` *required*

m\_hcp\_… id, the page id in the dashboard and in the shopper's /faq/\<page id> link.

**published** `Boolean!` *required*

Whether the page is published. Only collections on a published page show to shoppers.

**title** `String!` *required*

The page's title.

**id** `ID!` *required*

The id of this link, which `knowledgeEntriesStatusSet` and `knowledgeEntriesRemove` take.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

Whether Commerce Agent may use the article. Combine with the effective window.

**title** `String!` *required*

The entry's name as the Knowledge page and its CSV export show it: the page, collection and article titles joined with `>`, leaving out any that are empty or gone.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the link last changed.

**usageCount** `Int!` *required*

How many messages Commerce Agent used the article in, the Knowledge page's Uses. Unsent draft replies don't count.

**whenToUse** `String!` *required*

The text Commerce Agent matches a shopper's question against to pick this article. It is generated from the article, so it is read-only; a new link starts with its title.

**message** `String`

The same, in words. Null when it is OK.

**status** `[BulkItemStatus!](/docs/api-reference/v3/reference/common/bulk-item-status)` *required*

What the action did with the item.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.