Skip to content

Commit

Permalink
Merge pull request #305 from DSpace/saschaszott-patch-1
Browse files Browse the repository at this point in the history
Update subscriptions.md
  • Loading branch information
tdonohue authored Feb 24, 2025
2 parents 44ef3a2 + e6cfedc commit b0ca49f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ Return codes:
* 422 Unprocessable Entity - if the subscriptionType or subscriptionParameter name or value are invalid

## Updating subscription
** PUT /api/core/subscriptions/<:id>**
**PUT /api/core/subscriptions/<:id>**

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

Request body:

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

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

## Deleting a Subscription Object
Expand Down

0 comments on commit b0ca49f

Please sign in to comment.