$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://localhost:11006/Properties',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_POSTFIELDS =>'{
"Nace": "15160",
"Creator": "Ali İcellioglu",
"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"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json-patch+json',
'Authorization: Bearer <API KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;