Project

General

Profile

Error during create Issues

Added by Olivier Dub over 4 years ago

Hi,

I'm trying to create issues by API, the doc do not provide a lot of infos for the error. Someone more experienced can check this out ? (cf attachment)

Have a nice day,

Thx


Replies (3)

RE: Error during create Issues - Added by Mayama Takeshi over 4 years ago

Hi,
you should send the parameters in a request body like this:

curl -H "X-Redmine-API-Key: API_KEY" -X POST -H 'Content-Type: application/json' https:/REDMINE_SERVER/issues.json -d '{"issue": {"project_id": 1, "tracker_id": 1, "status_id": 2, "priority_id": 4, "subject": "test1234", "description": "test1234", "assigned_to_id": 1196, "is_private": true}}'

RE: Error during create Issues - Added by Olivier Dub over 4 years ago

Hi,

Still same error,

here is my Json :

{"issue":{"project_id":1151,"tracker_id":2,"status_id":2,"priority_id":4,"subject":"TestAPI","description":"TESTAPI","assigned_to_id":1196,"is_private":true}}

here is my header :

{"Content-Type":"application/json","X-Redmine-API-Key":"XXXXXXXXX"}

Don't know why, any ideas ? :/

have a nice day,

RE: Error during create Issues - Added by Mayama Takeshi over 4 years ago

Hi,
if I am not mistaken, I saw some reports about this problem related to presence of some plugins. If you are using plugins, try to remove them.

    (1-3/3)