Projects
PUT projects/:id
The request updates all fields of the specified project with the parameters passed in the query.
Reference information about the resource:
API Endpoint | https://www.diggernaut.com/api/projects/:id |
Request Format | JSON |
Response Format | JSON |
Access Level | User |
Limits | Yes |
curl -v -X PUT -H "Content-Type: application/json" -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/projects/1 -d '{"name":"US Airplanes"}'
HTTP/1.0 200 OK Date: Fri, 19 Aug 2016 15:56:47 GMT Vary: Accept, Accept-Language, Cookie X-Frame-Options: SAMEORIGIN Content-Type: application/json Content-Language: en Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
{ "id": 1, "name": "US Airplanes", "description": null }