---
title: "Legacy - Get resources that are related to a resource"
method: POST
path: "/metadata/relationships/{owner}/resource/{resourceId}"
tags: ["legacy catalog - relationships"]
---

# Legacy - Get resources that are related to a resource

`POST /metadata/relationships/{owner}/resource/{resourceId}`

Please refer to the updated IRI-based relationship endpoints.

## Path parameters

- `owner` string, required
- `resourceId` string, required

## Query parameters

- `limit` integer
- `next` string

## Request body

- RelationshipGetRequestById
  - `byRelationTypes` string[] — Filter by these relation types. Relation types should be IRIs.
  - `byResourceTypes` string[] — Filter by these resource types.
  - `resourceType` 'CATALOG' | 'ANALYSIS' | 'BUSINESS_TERM' | 'COLUMN' | 'DATA_TYPE' | 'DATABASE' | 'DATASET' | 'PROJECT' | 'TABLE' | 'CONCEPT' | 'UNKNOWN_CATALOG_ENTRY', required — The type of resourceId.

## Response `200`

default response

- PaginatedGenericResultsMetadataResourceDto
  - `consistent` boolean
  - `count` integer
  - `hydrations` PubSearchHydrations
    - `agents` object
    - `catalogConcepts` object
    - `collections` object
    - `properties` object
    - `relationships` object
    - `resourceHierarchy` object
  - `next` string
  - `records` MetadataResourceDto[]
    - `assetStatus` AssetStatus
      - `assetStatusLabel` string
      - `dispositionLabel` string
    - `category` string
    - `collections` CatalogId[]
      - `collectionId` string, required
      - `owner` string, required
      - `referent` string, required
    - `columnIndex` integer
    - `created` string, date-time, required
    - `dataType` string
    - `description` string
    - `encodedIri` string
    - `externalUrls` string[]
    - `id` string, required
    - `iri` string
    - `owner` string, required
    - `properties` object — All properties of the resource that are associated with a metadata presentation. Key is the IRI of the property. Value is the value of the property.
    - `relationshipTypes` string[]
    - `rootParentTypeIri` string
    - `rootParentTypeLabel` string
    - `summary` string
    - `table` TableId
      - `owner` string, required
      - `sourceId` string
      - `tableId` string, required
    - `tags` string[]
    - `title` string
    - `typeIri` string
    - `typeLabel` string
    - `updated` string, date-time
    - `url` string, uri
    - `visibility` 'DISCOVERABLE' | 'OPEN' | 'PRIVATE', required

---

[API](https://skmtc.dev/data/apis/data-world-public-api.md) · [All operations](https://skmtc.dev/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/data/data-world-public-api/revisions/0a0cb1f94dad/schema)
