Vinit Patel
Vinit Patel

Reputation: 2464

x-ms-documentdb-partitionkey issue with hirarchical partition key

We are trying to create a cosmos DB document with REST API Call. We have create hirarchical partition key like /id, /date. Now when WE pass

x-ms-documentdb-partitionkey

in header with ["value","value1"] we are getting below error.

We have also added x-ms-documentdb-partitionkey-kind with HASH value.

The 'kind' value 'MultiHash' specified in the partition key definition is invalid. Please choose 'Hash' partition type.

Upvotes: 0

Views: 348

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222572

REST and other tools don't have the support for Hierarchical partition keys apart from the latest version of the SDKs mentioned here

so it won't work with the REST API.

Upvotes: 1

Related Questions