Add POST endpoint for creating activities on a WP

pull/1972/head
Hagen Schink 10 years ago
parent f56fb3d010
commit 3ae661c2c7
  1. 22
      apiary.apib

@ -1204,3 +1204,25 @@ A user must have the permission to **edit journals** to update an activity. A
+ Response 200 (application/hal+json)
[Watch WorkPackage][]
## Comment WorkPackage [/work_packages/{id}/activities]
## Comment work package [POST]
Creates an activity for the selected work package and, on success, returns the
updated activity.
A user must have the permission to **create journals** to update an activity. A
``403`` is returned otherwise.
+ Parameters
+ id (required, integer, `1`) ... Work package id
+ comment (required, string, `I think this is awesome!`) ... Activity comment
+ Response 201 (application/hal+json)
[Activity][]
+ Response 403 (application/hal+json)
+ Response 422 (application/hal+json)

Loading…
Cancel
Save