Skip to content

Commit 2be08de

Browse files
authored
Merge pull request #306 from DSpace/backport-305-to-dspace-8_x
[Port dspace-8_x] Update subscriptions.md
2 parents 52cdcc4 + 73007f9 commit 2be08de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

subscriptions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ Return codes:
244244
* 422 Unprocessable Entity - if the subscriptionType or subscriptionParameter name or value are invalid
245245

246246
## Updating subscription
247-
** PUT /api/core/subscriptions/<:id>**
247+
**PUT /api/core/subscriptions/<:id>**
248248

249-
It is possible to update a subscription with id
250-
`curl -X PUT '{dspace7-url}/api/core/subscriptions/{id}
251-
' -H "Authorization: Bearer ..." -H 'Content-Type: application/json'
249+
It is possible to update a subscription with a given id.
250+
251+
Request body:
252252

253253
```json
254254
{
@@ -265,12 +265,12 @@ It is possible to update a subscription with id
265265
The json body must be valid that mean:
266266
- subscriptionType must be 'content'
267267
- name must be 'frequency'
268-
- value must be one of the following values: 'D' stand for Day, 'W' stand for Week and 'M' stand for Month
268+
- value must be one of the following values: 'D' (Day), 'W' (Week) or 'M' (Month)
269269

270270
Return codes:
271-
* 200 OK - if the operation succeed, the created subscription is returned
271+
* 200 OK - if the operation succeed, the updated subscription is returned
272272
* 401 Unauthorized - if you are not authenticated
273-
* 403 Forbidden - if you are not logged in with sufficient permissions. Only system administrators and Owner can create subscription
273+
* 403 Forbidden - if you are not logged in with sufficient permissions. Only system administrators and subscription owners can update subscriptions.
274274
* 422 Unprocessable Entity - if the subscriptionType or subscriptionParameter name or value are invalid
275275

276276
## Deleting a Subscription Object

0 commit comments

Comments
 (0)