{"record":{"id":"68bdd8356abfd607","repo":"phacility/phabricator","slug":"err-need-param","errorCode":"ERR_NEED_PARAM","errorMessage":"ERR_NEED_PARAM","messagePattern":"ERR_NEED_PARAM","errorType":"error_code","errorClass":"ConduitException","httpStatus":null,"severity":"error","filePath":"src/applications/flag/conduit/FlagDeleteConduitAPIMethod.php","lineNumber":52,"sourceCode":"    $object = $request->getValue('objectPHID');\n    if ($id) {\n      $flag = id(new PhabricatorFlag())->load($id);\n      if (!$flag) {\n        throw new ConduitException('ERR_NOT_FOUND');\n      }\n      if ($flag->getOwnerPHID() != $request->getUser()->getPHID()) {\n        throw new ConduitException('ERR_WRONG_USER');\n      }\n    } else if ($object) {\n      $flag = id(new PhabricatorFlag())->loadOneWhere(\n        'objectPHID = %s AND ownerPHID = %s',\n        $object,\n        $request->getUser()->getPHID());\n      if (!$flag) {\n        return null;\n      }\n    } else {\n      throw new ConduitException('ERR_NEED_PARAM');\n    }\n    $this->attachHandleToFlag($flag, $request->getUser());\n    $ret = $this->buildFlagInfoDictionary($flag);\n    $flag->delete();\n    return $ret;\n  }\n\n}\n","sourceCodeStart":34,"sourceCodeEnd":61,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/flag/conduit/FlagDeleteConduitAPIMethod.php#L34-L61","documentation":"Error \"ERR_NEED_PARAM\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/flag/conduit/FlagDeleteConduitAPIMethod.php:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}