Find relationship from source to target

GET {{baseUrl}}/api/relation/:relationName/from/:sourceType/:sourceKey/to/:targetType/:targetKey?sourceStatus=<string>&targetStatus=<string>&sourceVersion=<integer>&targetVersion=<integer>&expand=<string>&expand=<string>

Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships are one way.

For example, you can use this method to find whether the current user has selected a particular page as a favorite (i.e. 'save for later'): GET https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123

Permissions required: Permission to view both the target entity and source entity.

Request Params

KeyDatatypeRequiredDescription
sourceStatusstringThe status of the source. This parameter is only used when the
sourceType is 'content'.
targetStatusstringThe status of the target. This parameter is only used when the
targetType is 'content'.
sourceVersionstringThe version of the source. This parameter is only used when the
sourceType is 'content' and the sourceStatus is 'historical'.
targetVersionstringThe version of the target. This parameter is only used when the
targetType is 'content' and the targetStatus is 'historical'.
expandstringA multi-value parameter indicating which properties of the response
object to expand.
  • relationData returns information about the relationship, such as who created it and when it was created.

  • source returns the source entity.

  • target returns the target entity. | | expand | string | | A multi-value parameter indicating which properties of the response object to expand.

  • relationData returns information about the relationship, such as who created it and when it was created.

  • source returns the source entity.

  • target returns the target entity. |

RESPONSES

status: OK

{&quot;name&quot;:&quot;laborum amet&quot;,&quot;_expandable&quot;:{&quot;relationData&quot;:&quot;minim do quis&quot;,&quot;source&quot;:&quot;quis velit dolore ut&quot;,&quot;target&quot;:&quot;sint fugiat id repreh&quot;},&quot;_links&quot;:{},&quot;relationData&quot;:{&quot;createdBy&quot;:{&quot;type&quot;:&quot;known&quot;,&quot;accountId&quot;:&quot;est veniam nisi&quot;,&quot;accountType&quot;:&quot;atlassian&quot;,&quot;email&quot;:&quot;fugiat tempor est&quot;,&quot;publicName&quot;:&quot;proident cillum adipisicing&quot;,&quot;profilePicture&quot;:{&quot;path&quot;:&quot;incididunt dolore sit in eu&quot;,&quot;width&quot;:66665902,&quot;height&quot;:7198703,&quot;isDefault&quot;:false},&quot;displayName&quot;:&quot;mollit ex pariatur dolor&quot;,&quot;_expandable&quot;:{&quot;operations&quot;:&quot;adipisicing in&quot;,&quot;details&quot;:&quot;id minim sed&quot;,&quot;personalSpace&quot;:&quot;Ut&quot;},&quot;_links&quot;:{},&quot;username&quot;:&quot;proident ut incididunt consequat&quot;,&quot;userKey&quot;:&quot;ipsum consequat sed ullamco aliquip&quot;,&quot;operations&quot;:[{&quot;operation&quot;:&quot;copy&quot;,&quot;targetType&quot;:&quot;space&quot;},{&quot;operation&quot;:&quot;purge_version&quot;,&quot;targetType&quot;:&quot;space&quot;}],&quot;details&quot;:{&quot;business&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;personal&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;personalSpace&quot;:{&quot;id&quot;:32251017,&quot;key&quot;:&quot;Excepteur do&quot;,&quot;name&quot;:&quot;est velit non&quot;,&quot;type&quot;:&quot;deserunt occaecat&quot;,&quot;status&quot;:&quot;in commodo incididunt non&quot;,&quot;_expandable&quot;:{&quot;settings&quot;:&quot;ut cillum quis in&quot;,&quot;metadata&quot;:&quot;dolore minim&quot;,&quot;operations&quot;:&quot;anim commodo amet&quot;,&quot;lookAndFeel&quot;:&quot;dolore Lorem&quot;,&quot;permissions&quot;:&quot;dolore anim&quot;,&quot;icon&quot;:&quot;deserunt ex occaecat amet&quot;,&quot;description&quot;:&quot;cillum nostrud sint&quot;,&quot;theme&quot;:&quot;dolor id&quot;,&quot;history&quot;:&quot;in fugiat eu esse&quot;,&quot;homepage&quot;:&quot;et&quot;},&quot;_links&quot;:{},&quot;icon&quot;:{&quot;path&quot;:&quot;laboris eiusmod Excepteur eu&quot;,&quot;width&quot;:-89581460,&quot;height&quot;:-66835718,&quot;isDefault&quot;:true},&quot;description&quot;:{&quot;plain&quot;:{&quot;value&quot;:&quot;ut eu reprehenderit&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;view&quot;:{&quot;value&quot;:&quot;reprehenderit&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;embeddedContent&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}},&quot;homepage&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;},&quot;metadata&quot;:{&quot;labels&quot;:{&quot;results&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;start&quot;:83305188,&quot;limit&quot;:81363289,&quot;size&quot;:-91970205,&quot;_links&quot;:{}}},&quot;operations&quot;:[{&quot;operation&quot;:&quot;purge&quot;,&quot;targetType&quot;:&quot;comment&quot;},{&quot;operation&quot;:&quot;use&quot;,&quot;targetType&quot;:&quot;blogpost&quot;}],&quot;permissions&quot;:[{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;purge_version&quot;,&quot;targetType&quot;:&quot;page&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false},{&quot;subjects&quot;:{&quot;_expandable&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;group&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;operation&quot;:{&quot;operation&quot;:&quot;administer&quot;,&quot;targetType&quot;:&quot;blogpost&quot;},&quot;anonymousAccess&quot;:false,&quot;unlicensedAccess&quot;:false}],&quot;settings&quot;:{&quot;routeOverrideEnabled&quot;:true,&quot;_links&quot;:{}},&quot;theme&quot;:{},&quot;lookAndFeel&quot;:{&quot;headings&quot;:{&quot;color&quot;:&quot;fugiat irure nostrud&quot;},&quot;links&quot;:{&quot;color&quot;:&quot;ad velit&quot;},&quot;menus&quot;:{&quot;hoverOrFocus&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;color&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;header&quot;:{&quot;backgroundColor&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;button&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;primaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;secondaryNavigation&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;search&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;content&quot;:{&quot;screen&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;container&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;header&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;body&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;bordersAndDividers&quot;:{&quot;color&quot;:&quot;do in laborum&quot;}},&quot;history&quot;:{&quot;createdDate&quot;:&quot;1968-05-01T03:07:38.118Z&quot;}}},&quot;createdDate&quot;:&quot;1955-09-27T16:15:59.770Z&quot;,&quot;friendlyCreatedDate&quot;:&quot;reprehenderit quis&quot;},&quot;source&quot;:{},&quot;target&quot;:{}}