---
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

---

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