---
title: "Resolve resource ancestors"
method: POST
path: "/datasource/{id}/resource-ancestors"
tags: ["DataSource"]
---

# Resolve resource ancestors

`POST /datasource/{id}/resource-ancestors`

Resolve the ancestor ExternalIDs that must be expanded to reveal the given (possibly deeply nested) resources in a lazily-loaded picker. Used to restore an existing selection when editing a data source.

## Path parameters

- `id` string, required

## Request body

- InternalHandlerResolveAncestorsRequest
  - `resource_ids` string[]

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request

## Changes

- **2026-06-25** `18ae5dbbf163` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/datasource/:id/resource-ancestors/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
