id, $assetid); } catch (Exception $e) { http_response_code(500); $error = $e->getMessage(); } echo json_encode(array("error" => $error)); }