Project

General

Profile

update project using curl

Added by James R almost 11 years ago

Hello I cannot get the api to update a project using curl

I am using the following statement which should enable me to change the description:

curl -v "Content-Type: application/xml" -X PUT --data "<project><id>1</id><name>Project 1</name><identifier>pr1</identifier><description>I want to change this description</description></project>" -u user:password localhost/redmine/projects/1.xml

I get at Redmine 500 Error.

Any ideas why this happens? I think it used to work with version 2.3

My environment:

  Redmine version                          2.3.1.stable
  Ruby version                             1.9.3 (i386-mingw32)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

Thanks for any suggestions