---
updatedAt: 2026-04-22T17:08:46.000Z
agentTools:
  projectIndex: https://developer.vyasa.com/llms.txt
---

# Add items to a set

# 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}/add": {
      "put": {
        "operationId": "addItemsBySearch",
        "parameters": [
          {
            "$ref": "#/components/parameters/xVyasaDataProvidersParam_Optional"
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DistributedSourceDocumentSearchCommand"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Added"
          },
          "400": {
            "description": "Bad Request",
            "$ref": "#/components/responses/400BadRequest"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "summary": "Add items to a set",
        "tags": [
          "savedList"
        ]
      }
    }
  },
  "tags": [
    {
      "description": "Saved Lists",
      "name": "savedList"
    }
  ],
  "components": {
    "parameters": {
      "xVyasaDataProvidersParam_Optional": {
        "in": "header",
        "name": "X-Vyasa-Data-Providers",
        "schema": {
          "type": "string"
        },
        "required": false,
        "example": "master-pubmed.vyasa.com",
        "description": "remote data providers to query"
      }
    },
    "schemas": {
      "LiveSourceType": {
        "title": "LiveSourceType",
        "enum": [
          "S3",
          "JDBC_GENERIC",
          "SHAREPOINT"
        ],
        "type": "string"
      },
      "SourceDocumentType": {
        "type": "string",
        "enum": [
          "DOCUMENT",
          "IMAGE",
          "IMAGE_GROUP",
          "WEBSITE",
          "RSS",
          "TABLE",
          "SDF"
        ]
      },
      "BaseSearchCommand": {
        "title": "BaseSearch",
        "type": "object",
        "properties": {
          "fromDate": {
            "format": "date-time",
            "type": "string",
            "description": "Starting date formatted as YYYY-MM-DD"
          },
          "q": {
            "type": "string",
            "description": "The query string to search for"
          },
          "rows": {
            "format": "int32",
            "type": "integer",
            "description": "The number of results to return"
          },
          "sort": {
            "type": "string",
            "description": "The result value to sort by"
          },
          "sortOrder": {
            "type": "string",
            "description": "The order to sort by (ex- 'ASC' or 'DESC')"
          },
          "start": {
            "format": "int32",
            "type": "integer",
            "description": "The index of the row to start returning values from"
          },
          "toDate": {
            "format": "date-time",
            "type": "string",
            "description": "Ending date formatted as YYYY-MM-DD"
          }
        }
      },
      "DistributedSourceDocumentSearchCommand": {
        "title": "DistributedSourceDocumentSearchCommand",
        "allOf": [
          {
            "$ref": "#/components/schemas/SourceDocumentSearchCommand"
          },
          {
            "type": "object",
            "properties": {
              "dataProviders": {
                "type": "array",
                "description": "The list of data providers (i.e. 'myinstance.yourcompany.com', 'master-arxiv.vyasa.com') to run your search against",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "SourceDocumentSearchCommand": {
        "title": "SourceDocumentSearchCommand",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseSearchCommand"
          },
          {
            "type": "object",
            "properties": {
              "annotationSearches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnnotationSearch"
                }
              },
              "categoryIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "connectorId": {
                "type": "string"
              },
              "connectorIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "dataSourceTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "excludes": {
                "$ref": "#/components/schemas/SourceDocumentExcludeSearchCommand"
              },
              "filters": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FieldFilter"
                }
              },
              "filterOp": {
                "type": "string",
                "enum": [
                  "AND",
                  "OR"
                ]
              },
              "hasFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "highlight": {
                "type": "boolean"
              },
              "highlightFragmentSize": {
                "type": "integer",
                "format": "int32"
              },
              "highlightNumberOfFragments": {
                "type": "integer",
                "format": "int32"
              },
              "highlightPostTag": {
                "type": "string"
              },
              "highlightPreTag": {
                "type": "string"
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "liveSourceId": {
                "type": "string"
              },
              "liveSourceIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "liveSourceTypes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LiveSourceType"
                }
              },
              "logSearch": {
                "type": "boolean"
              },
              "mimeTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "mustHaveAnnotations": {
                "type": "boolean"
              },
              "parentIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "paths": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "projectComputationId": {
                "type": "string"
              },
              "question": {
                "type": "string"
              },
              "savedListIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sectionSearches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SectionSearch"
                }
              },
              "similarityDocumentId": {
                "type": "string"
              },
              "similarityThreshold": {
                "type": "number",
                "format": "float"
              },
              "sourceFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "termOperator": {
                "type": "string",
                "enum": [
                  "AND",
                  "OR"
                ]
              },
              "terms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "trialData": {
                "type": "object"
              },
              "type": {
                "$ref": "#/components/schemas/SourceDocumentType"
              },
              "types": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SourceDocumentType"
                }
              },
              "userIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "vyasaClients": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "Error": {
        "properties": {
          "errors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "SourceDocumentExcludeSearchCommand": {
        "title": "SourceDocumentExcludeSearchCommand",
        "type": "object",
        "properties": {
          "annotationSearches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnotationSearch"
            }
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "connectorId": {
            "type": "string"
          },
          "connectorIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dataSourceTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hasFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "highlight": {
            "type": "boolean"
          },
          "highlightFragmentSize": {
            "type": "integer",
            "format": "int32"
          },
          "highlightNumberOfFragments": {
            "type": "integer",
            "format": "int32"
          },
          "highlightPostTag": {
            "type": "string"
          },
          "highlightPreTag": {
            "type": "string"
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "liveSourceId": {
            "type": "string"
          },
          "liveSourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "liveSourceTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSourceType"
            }
          },
          "logSearch": {
            "type": "boolean"
          },
          "mimeTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mustHaveAnnotations": {
            "type": "boolean"
          },
          "parentIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projectComputationId": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "savedListIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sectionSearches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SectionSearch"
            }
          },
          "similarityDocumentId": {
            "type": "string"
          },
          "similarityThreshold": {
            "type": "number",
            "format": "float"
          },
          "sourceFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "termOperator": {
            "type": "string",
            "enum": [
              "AND",
              "OR"
            ]
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "trialData": {
            "type": "object"
          },
          "type": {
            "$ref": "#/components/schemas/SourceDocumentType"
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourceDocumentType"
            }
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "vyasaClients": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AnnotationSearch": {
        "title": "AnnotationSearch",
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "valueType": {
            "type": "string",
            "enum": [
              "STRING",
              "BOOLEAN",
              "INTEGER",
              "DOUBLE",
              "DATE"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number"
                }
              ]
            }
          },
          "minValue": {
            "type": "integer"
          },
          "maxValue": {
            "type": "integer"
          },
          "minDateValue": {
            "format": "date-time",
            "type": "string"
          },
          "maxDateValue": {
            "format": "date-time",
            "type": "string"
          }
        }
      },
      "SectionSearch": {
        "title": "SectionSearch",
        "type": "object",
        "properties": {
          "heading": {
            "type": "string"
          },
          "section": {
            "type": "string"
          }
        }
      },
      "FieldFilter": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "AND",
              "OR",
              "NOT"
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "exists": {
                  "type": "boolean"
                },
                "minValue": {
                  "type": "number"
                },
                "maxValue": {
                  "type": "number"
                },
                "minDate": {
                  "format": "date-time",
                  "type": "string"
                },
                "maxDate": {
                  "format": "date-time",
                  "type": "string"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "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": []
    }
  ]
}
```