---
title: "Post Memory Items"
method: POST
path: "/api/v1/entities/workspaces/{workspaceId}/memoryItems"
tags: ["Memory Items"]
---

# Post Memory Items

`POST /api/v1/entities/workspaces/{workspaceId}/memoryItems`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/entities/workspaces/{workspaceId}/memoryItems`
- Auth: none declared

## Path parameters

- `workspaceId` string, required

## Query parameters

- `include` string[]
- `metaInclude` string[]: Included meta objects

## Request body

- JsonApiMemoryItemPostOptionalIdDocument
  - `data` JsonApiMemoryItemPostOptionalId, required: JSON:API representation of memoryItem entity.
    - `attributes` object, required
      - `areRelationsValid` boolean
      - `description` string
      - `instruction` string, required: The text that will be injected into the system prompt
      - `isDisabled` boolean: Whether memory item is disabled
      - `keywords` string[]: Set of unique strings used for semantic similarity filtering
      - `strategy` 'ALWAYS' | 'AUTO', required: Strategy defining when the memory item should be applied
      - `tags` string[]
      - `title` string
    - `id` string: API identifier of an object
    - `type` 'memoryItem', required: Object type

## Response `201`

Request successfully processed

- JsonApiMemoryItemOutDocument
  - `data` JsonApiMemoryItemOut, required: JSON:API representation of memoryItem entity.
    - `attributes` object, required
      - `areRelationsValid` boolean
      - `createdAt` string, date-time, nullable: Time of the entity creation.
      - `description` string
      - `instruction` string, required: The text that will be injected into the system prompt
      - `isDisabled` boolean: Whether memory item is disabled
      - `keywords` string[]: Set of unique strings used for semantic similarity filtering
      - `modifiedAt` string, date-time, nullable: Time of the last entity modification.
      - `strategy` 'ALWAYS' | 'AUTO', required: Strategy defining when the memory item should be applied
      - `tags` string[]
      - `title` string
    - `id` string, required: API identifier of an object
    - `meta` object
      - `origin` object
        - `originId` string, required: defines id of the workspace where the entity comes from
        - `originType` 'NATIVE' | 'PARENT', required: defines type of the origin of the entity
    - `relationships` object
      - `createdBy` object
        - `data` JsonApiUserIdentifierToOneLinkage, required: The \"type\" and \"id\" to non-empty members.
          - `id` string, required
          - `type` 'userIdentifier', required
      - `modifiedBy` object
        - `data` JsonApiUserIdentifierToOneLinkage, required: The \"type\" and \"id\" to non-empty members.
          - `id` string, required
          - `type` 'userIdentifier', required
    - `type` 'memoryItem', required: Object type
  - `included` JsonApiUserIdentifierOutWithLinks[]: Included resources
    - `attributes` object
      - `email` string
      - `firstname` string
      - `lastname` string
    - `id` string, required: API identifier of an object
    - `type` 'userIdentifier', required: Object type
    - `links` ObjectLinks
      - `self` string, uri, required: A string containing the link's URL.
  - `links` ObjectLinks
    - `self` string, uri, required: A string containing the link's URL.
  - `meta` object
    - `restricted` RestrictedObject[]: References withheld from `included` because the caller may not view them. Their `relationships` entries are kept, so a client can render a placeholder instead of treating the reference as missing. Empty when the caller may view every reference in the payload; absent entirely when no object-level permissions apply to the request.
      - `id` string, required: Object identifier, unique within one workspace hierarchy.
      - `type` 'analyticalDashboard' | 'attribute' | 'attributeHierarchy' | 'computedAttribute' | 'fact' | 'label' | 'metric' | 'userDataFilter' | 'visualizationObject', required: JSON:API type of the restricted object. Matches the `type` of its entry in the resource's `relationships`.

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
