From 694001457768cbd01e18fd3db4ed757e44f96f0e Mon Sep 17 00:00:00 2001 From: dcanonmolina <69598033+dcanonmolina@users.noreply.github.com> Date: Mon, 11 Sep 2023 09:03:04 -0500 Subject: [PATCH] fix: adding named parameters to the code sample The existing code leads to an error as the provided parameters does not match the parameter list in the C# SDK: https://github.com/twilio/twilio-csharp/blob/11a46b57afa017b7e91e5c8b0a5c613a0e809442/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs#L634 --- .../instance-post-example-1/instance-post-example-1.6.x.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/message/instance-post-example-1/instance-post-example-1.6.x.cs b/rest/message/instance-post-example-1/instance-post-example-1.6.x.cs index 458cb2d2df..fda3a98983 100644 --- a/rest/message/instance-post-example-1/instance-post-example-1.6.x.cs +++ b/rest/message/instance-post-example-1/instance-post-example-1.6.x.cs @@ -14,7 +14,7 @@ static void Main(string[] args) TwilioClient.Init(accountSid, authToken); const string sid = "MM5ef8732a3c49700934481addd5ce1659"; - var message = MessageResource.Update(sid, ""); + var message = MessageResource.Update(pathSid:sid,body:""); Console.WriteLine(message.Body); // will be empty }