EndPoint Upsert a document in the container
Name
upsert_document
Description
Insert JSON document in Cosmos DB Container. [API reference]
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
id |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
_rid |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
_ts |
DT_I8
|
bigint
|
False |
||
http_status |
DT_I4
|
int
|
False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
PartitionKey |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
Document |
DT_NTEXT
|
nvarchar(MAX)
|
False |
Required columns that you need to supply are bolded.
Examples
SSIS
Use Cosmos DB Connector in API Source component to read data or in API Destination component to read/write data:
Upsert a document in the container using API Source
Cosmos DB
Upsert a document in the container

Upsert a document in the container using API Destination
Cosmos DB
Upsert a document in the container
