This command is used to update the details of a WHMCSPM2 Project in your WHMCS system. You just need to send the projectid and the attributes from below that you want to change. You do not need to send them all.
Attributes
name - project name description - project description category - category id priority - priority id client - client id the project is for (optional) status - status id filesok - (boolean) allow client to add files to project tasksok - (boolean) allow client to add tasks to project private - (boolean) internal project, client cannot view admin_email_ok - (boolean) enable admin notifications for project client_email_ok - (boolean) enable client notifications for project assigned - comma separated string of admin ids that are assigned to project startdate - start date of the project, default is today (whmcs date format) enddate - end date or deadline of the project, default is today (whmcs date format) budget - budget of the project in the format of 0.00 sendemail - (boolean) Send Client and Admin email notifications? customfields - a base64 encoded serialized array of custom field values **NOTE** For boolean values, use 0 for false and 1 for true;
Example Command
$postfields["action"] = "whmcspm2editproject"; $postfields["projectid"] = "1"; $postfields["name"] = "New Project Name"; $postfields["assigned"] = "2,4,8,13";
Returned Variables
result - error / success projectid