List items that use a file
GET
/api/v1/notes/used-in
const url = 'https://example.com/api/v1/notes/used-in?path=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/notes/used-in?path=example' \ --header 'Authorization: Bearer <token>'Requires a signed-in User with the data scope. Returns the User’s Notes, Tasks, Log entries and Events that use the file, up to 1000 items. Returns 413 when that limit is exceeded. Route: /api/v1/notes/used-in. Inputs: path. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”path
required
string
Responses
Section titled “Responses”Media typeapplication/json
Array<object>
One stable item that uses a file; date is set only for a Log entry (#620).
object
date
string | null
id
required
string
kind
required
Source types for the Inspector’s file-usage backlinks (#620; DESIGN §34).
string
title
required
string
Example
[ { "kind": "log" }]Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}