Delete all activity links

delete

/rest/ofscCore/v1/activities/{activityId}/linkedActivities

This operation deletes all the links for the specified activity.

Activity links define the correlation between two activities. If a link is created between two activities, it can define the following relations:

  • The sequence in which the activities are performed. The basic link types allowed are finish-to-start, start-to-start, simultaneous, and related.
  • The minimum and maximum intervals between sequential activities.
  • Whether the linked activities are performed by the same resource or different resources.

For multi-day activities, only the Related link type is applicable.

Request

Path Parameters
Back to Top

Response

Supported Media Types

204 Response

This section describes the 204 status response for this operation.
Body ()
Root Schema : Linked Activities
Type: object
Title: Linked Activities
The collection of activity-to-activity relations.
Show Source
Nested Schema : Items
Type: array
Title: Items
An array of activity links for the specified activity.
Show Source
Nested Schema : Activity Link
Type: object
Title: Activity Link
The link represents the relation between two activities.
Show Source
  • Title: Alerts
    The bitmask of alert flags for the activity link. If the value returned is '0', then there are no alerts for the activity link.
  • Title: From Activity ID
    The identifier of the first linked activity.
  • Title: Link Type
    The link type specified in the request.
  • Title: Max Interval
    Minimum Value: 0
    Maximum Value: 65535
    The maximum time interval (in minutes) between subsequent linked activities, for the links that define the relative order of the activities. This parameter can only be sent if it is configured as "Adjustable" in the link template configuration. If the parameter is missing in the request, the value from the template wil be used.
  • Title: Min Interval
    Minimum Value: 0
    Maximum Value: 65535
    The minimum time interval (in minutes) between subsequent linked activities, for the links that define the relative order of the activities. This parameter can only be sent if it is configured as "Adjustable" in the link template configuration. If the parameter is missing in the request, the value from the template wil be used.
  • Title: To Activity ID
    The identifier of the second linked activity.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to delete all activity links by submitting a DELETE request on the REST resource using cURL.

curl -X 'DELETE' \
     -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \
     -H 'Content-Type: application/json' \
     --data-binary '' \
     'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/4225269/linkedActivities'

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 204 No Content
Server: nginx/1.2.7
Date: Fri, 18 Mar 2016 02:24:07 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Back to Top