Activity Actions REST Endpoints

Core/Activities/Activity Actions
The activity actions resource is used to perform various actions on activities such as start activity, delay activity, move activity, complete activity, and so on.
Cancel an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/cancel
Change activity status from enroute to pending
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/stopTravel
Complete an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/complete
Delay an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/delay
Delete an activity
Method: delete
Path: /rest/ofscCore/v1/activities/{activityId}
Move an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/move
Reopen an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/reopen
Start an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/start
Start prework
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/startPrework
Suspend an activity
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/suspend
Update the activity status to enroute
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/enroute
Update the activity status to notdone
Method: post
Path: /rest/ofscCore/v1/activities/{activityId}/custom-actions/notDone