Ayarları Oluşturur veya Günceller

var options = new RestClientOptions("http://localhost:11006")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/Properties", Method.Put);
request.AddHeader("Content-Type", "application/json-patch+json");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"{
    ""Nace"": ""15160"",
    ""Creator"": ""Ali İçellioğlu"",
    ""TaxType"": ""IncludeTax"",
    ""LineCount"": 5000,
    ""IsBranch"": true,
    ""BranchName"": ""Merkez Şube"",
    ""BranchNumber"": ""0001"",
    ""LedgerPeriod"": true,
    ""FiscalYearStart"": ""2023-01-01"",
    ""FiscalYearEnd"": ""2023-12-31"",
    ""AccountingPeriod"": ""AccountingPeriod"",
    ""IsLiquidate"": false,
    ""LiquidateYearStart"": ""2024-01-29T07:32:15.625Z""
}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);