cosmosdb client The input content is invalid because the required properties - 'id; ' - are missing code example

Example: cosmos db The input content is invalid because the required properties - 'id; ' - are missing

// This appears because,
// in your cosmos db container you have a value id!

// NOTE that json is case sensitive so it's good practice to keep
// your program class properties with same names as in the container

// i.e. in your class you must have:

[JsonProperty(PropertyName = "id")]
public string id { get; set; }

Tags:

Misc Example