From b02b9b1a3efe31993b30c2a2bf240a7e19151e11 Mon Sep 17 00:00:00 2001 From: Bruno Casali Date: Wed, 2 Feb 2022 09:50:38 -0300 Subject: [PATCH] Update samples with the latest version of the public API --- .code-samples.meilisearch.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index a0dcc2c1..56dd93c0 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -231,7 +231,7 @@ create_a_key_1: |- Description = "Add documents: Products API key", Actions = new string[] { "documents.add" }, Indexes = new string[] { "products" }, - ExpiresAt = "2042-04-02T00:42:42Z" + ExpiresAt = DateTime.Parse("2042-04-02T00:42:42Z") }; Key createdKey = await this.client.CreateKeyAsync(keyOptions); update_a_key_1: |- @@ -250,7 +250,7 @@ security_guide_create_key_1: |- Description = "Search patient records key", Actions = new string[] { "search" }, Indexes = new string[] { "patient_medical_records" }, - ExpiresAt = "2023-01-01T00:00:00Z" + ExpiresAt = DateTime.Parse("2023-01-01T00:00:00Z") }; Key createdKey = await this.client.CreateKeyAsync(keyOptions); security_guide_list_keys_1: |-