---
updatedAt: 2026-07-01T16:31:00.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Append pre-completed column values to an existing Curate document set

Appends new per-document column values (Questions) to an existing document set (SavedList) identified by the path id, without adding or removing rows and without modifying existing columns. Only the `questions` field of the body is used. Each supplied question is stored pre-completed so the NLP answering pipeline is never triggered, a QuestionBatch is created per grouping key pointing at the existing set so Curate renders the appended columns, and the new column selections are merged into the set's viewConfig.curateSettingsV1.queryParams.qSearchParams so they are visible on open.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Layar API Documentation",
    "version": "4.1.4",
    "contact": {
      "name": "Certara AI Support",
      "email": "AI-Support@Certara.com",
      "url": "https://vyasa.readme.io/"
    }
  },
  "servers": [
    {
      "url": "BASE_PATH"
    }
  ],
  "paths": {
    "/layar/savedList/{id}/questions/import": {
      "post": {
        "operationId": "appendQuestionsToSavedList",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/xVyasaClientHint_Optional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AppendQuestionsCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportSavedListResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status - columns appended but some questions or batches failed to index",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportSavedListResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "$ref": "#/components/responses/400BadRequest"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Append pre-completed column values to an existing Curate document set",
        "description": "Appends new per-document column values (Questions) to an existing document set (SavedList) identified by the path id, without adding or removing rows and without modifying existing columns. Only the `questions` field of the body is used. Each supplied question is stored pre-completed so the NLP answering pipeline is never triggered, a QuestionBatch is created per grouping key pointing at the existing set so Curate renders the appended columns, and the new column selections are merged into the set's viewConfig.curateSettingsV1.queryParams.qSearchParams so they are visible on open.\n",
        "tags": [
          "savedList"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Saved Lists",
      "name": "savedList"
    }
  ],
  "components": {
    "parameters": {
      "xVyasaClientHint_Optional": {
        "in": "header",
        "name": "X-Vyasa-Client-Hint",
        "schema": {
          "type": "string"
        },
        "required": false,
        "example": "curate",
        "description": "intended client application UI"
      }
    },
    "schemas": {
      "AppendQuestionsCommand": {
        "title": "AppendQuestionsCommand",
        "type": "object",
        "required": [
          "questions"
        ],
        "properties": {
          "questions": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/ImportedQuestion"
            },
            "description": "Pre-completed per-document column values to append to the existing document set"
          }
        }
      },
      "ImportSavedListResponse": {
        "title": "ImportSavedListResponse",
        "type": "object",
        "properties": {
          "savedListId": {
            "type": "string",
            "description": "ID of the created document set"
          },
          "imported": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of an indexed Question"
                }
              }
            }
          },
          "batches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of an indexed QuestionBatch"
                },
                "batchGroupingKey": {
                  "type": "string"
                },
                "questionKeys": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "failed": {
            "type": "array",
            "description": "Present when one or more index operations failed (HTTP 207)",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "question",
                    "questionBatch"
                  ]
                },
                "questionKey": {
                  "type": "string"
                },
                "singleDocQuestionDocumentId": {
                  "type": "string"
                },
                "batchGroupingKey": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ImportedQuestion": {
        "title": "ImportedQuestion",
        "type": "object",
        "required": [
          "batchGroupingKey",
          "questionKey",
          "singleDocQuestionDocumentId"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "batchGroupingKey": {
            "type": "string",
            "description": "Grouping key linking this question to its QuestionBatch and Curate column selection"
          },
          "questionKey": {
            "type": "string",
            "description": "Column identifier within the batch (e.g. medication, has_medication)"
          },
          "singleDocQuestionDocumentId": {
            "type": "string",
            "description": "Source document id for this cell value"
          },
          "bestAnswers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Pre-completed answer values for this cell"
          },
          "metadata": {
            "type": "object"
          }
        }
      },
      "Error": {
        "properties": {
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "CONNECT_API_URL/oauth/token",
            "scopes": {}
          }
        }
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Error",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Error"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ]
}
```