Description Usage Arguments Value Examples
POST a Document Create to the REST API for Cosmos DB.
1 2 3 4 5 6 7 | cosmosCreate(
sql.doc = "",
sql.partitionkey_value = "",
debug.auth = FALSE,
debug.query = FALSE,
content.response = FALSE
)
|
sql.doc |
List of key/values to add to document. Required. |
sql.partitionkey_value |
The value of the partitionkey. Must also be part of sql.doc. Required. |
debug.auth |
Logical value for getting verbose output of auth header being constructed. Defaults to false. |
debug.query |
Logical value for getting verbose output of HTTP response, printing all headers. Defaults to false. |
content.response |
Logical value to determine whether to retrieve full response or just the documents |
Prints status code of HTTP POST, and returns full HTTP response or just the content
1 | cosmosCreate(sql.doc = list(id="uuid", code="code1"), sql.partitionkey_value = "code1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.