PUT
/
links
Create a link
curl --request PUT \
  --url https://{FUSION HOST}/api/links \
  --header 'Content-Type: application/json' \
  --data '{
  "subject": {
    "type": "APPKIT_APP",
    "id": "<string>",
    "uri": "<string>",
    "canonicalName": "<string>"
  },
  "object": {
    "type": "APPKIT_APP",
    "id": "<string>",
    "uri": "<string>",
    "canonicalName": "<string>"
  }
}'
{
  "subject": {
    "type": "APPKIT_APP",
    "id": "<string>",
    "uri": "<string>",
    "canonicalName": "<string>"
  },
  "object": {
    "type": "APPKIT_APP",
    "id": "<string>",
    "uri": "<string>",
    "canonicalName": "<string>"
  },
  "linkType": "DependsOn",
  "originator": "<string>"
}

Body

application/json

A JSON-formatted link definition that specifies the subject, object, and linkType.

subject
object
object
object

Response

200 - application/json

successful operation

subject
object
object
object

Possible link types:

  • DependsOn - The subject depends on the object.

  • Supports - The subject is depended on by the object (the reverse of dependsOn).

  • IsPartOf - The subject is part of the object, where the object is a group.

  • HasPart - The subject is a group, of which the object is a member (the reverse of isPartOf).

  • RelatesTo - The subject relates to the object. This is a uni-directional relationship that associates two objects that have none of the relationships described above.

  • InContextOf - The subject exists in the context of the object, which is an app.

  • HasContext - The subject is an app that contains the object.

  • Self - The subject and the object are the same.

Available options:
DependsOn,
Supports,
IsPartOf,
HasPart,
RelatesTo,
InContextOf,
HasContext,
Self
originator
string