Discussion Forums

Forbidden Opportunities

 
Apprentice
8 posts

Hello Again; Im not sure what the issue is here; If the URI is something like /companies/foobar you get a “200 OK Unknown activity alias: foobar” response not the 403 Forbidden error below…

Request:

parameters = {‘parent’:892394, ‘data’:{‘responsible’:228808, ‘valuecurrency’:‘USD’, ‘valueunit’:100, ‘valueinterval’:‘fixed price’, ‘stage’:50, ‘probability’:50, ‘closingdate’:‘2010-01-01’, ‘status’:‘Pending’}}
connection.request(“POST”, “/companies/opportunity”, json.dumps(parameters), headers)

Response:

403 Forbidden {“errors”:{“activitytypenotsupported”:“Specified activity type is not supported”},“status”:“failed”}

Avatar
Administrator
1823 posts

Hi Scott, Undocumented URIs won’t return anything useful, but perhaps instead of returning a 200 in this case we should return an explicit HTTP error.  Thanks for the tip.

Recently we introduced an issue that may have effected creating opportunity activities through the API.  It’s since been fixed.  Are you having any issue with it currently?

Apprentice
8 posts

Its now working as documented. Thanks. smile