Deal_task_edit => 500 error

Hello,

I’m using the PHP wrapper for Active Campaign’s API v2.

I’m trying to make a deal_task_edit but am just getting 500 errors back from the server. The URL with redacted company name and key is:

https://mycompany.api-us1.com/admin/api.php?api_key=mykey&api_action=deal_task_edit&api_output=json

POST data is:
{
“id”: “6083”,
“status”: “1”
}

I’ve tried adding more fields to the POST data but this doesn’t fix things.

Any help would be much appreciated!

Thanks,
Scott

1 Like

Getting to the CURL level:

CURLOPT_URL
https://mycompany.api-us1.com/admin/api.php?api_key=mykey&api_action=deal_task_edit&api_output=json

CURLOPT_POST
1

CURLOPT_POSTFIELDS
id=6083&status=1

There’s no curl_error. The response from curl_exec is null. All I’m getting is a 500 back from the server.

Thanks,
Scott

I can send in a postman script file if you want

API v3 looks capable of this, and even setting the status on deal task add, but apparently this isn’t production ready?

Hi Scott,

As mentioned via email, you will have to pass along the dealid parameter as well — I’ve let our team be aware of this so that the documentation is adjusted accordingly.

Best,
Pedro