Aggiefeed REST API DELETE api_v1_activity
Aggiefeed REST API: DELETE /api/v1/activity
Headers:
Headers | Comments |
---|---|
Authorization: ApiKey <api key> | Requires API KEY |
Request Parameters:
URL | Description |
---|---|
/api/v1/activity/<activity.object.id> | The activity's object.id |
Request Query Parameters:
Parameter | Description |
---|---|
userId | Deprecated per v1.36.0 : User's 'userId' who is deleting the activity. The 'userId' has to match the "actor.author.id". |
status | Activity status ["a", "l"] where "a" = "approval" and "l" = "life" |
URL Examples:
URL | Description |
---|---|
/api/v1/activity/1234-5678-9012?userId=user1&status=a | Delete activity where "object.id" == "1234-5678-9012" AND "actor.author.id" == "user1" AND activity is in the approval queue |
/api/v1/activity/1234-5678-9012?userId=user1&status=l | Delete activity where "object.id" == "1234-5678-9012" AND "actor.author.id" == "user1" AND activity is part of the "life" (published) stream |
Full Example:
Authorization: ApiKey abcdefgh HTTP DELETE https://aggiefeed.ucdavis.edu/api/v1/activity/1234-5678-9012?userId=user1&status=a