$loginId, "status" => $status ]; $ch = curl_init('https://api.descope.com/v1/mgmt/user/update/status'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // 결과 출력 header('Content-Type: application/json'); echo json_encode([ 'httpCode' => $httpCode, 'response' => json_decode($response, true) ]);