List editable resources that use an asset
/v1/assets/{asset_id}/referencesconst references = await bird.assets.references.list(
"ast_01krdgeqcxet5s7t44vh8rt9mg",
);
console.log(references.data, references.truncated);references = client.assets.references.list("ast_01krdgeqcxet5s7t44vh8rt9mg")
print(references.data, references.truncated)references, err := client.Assets.References.List(context.Background(), "ast_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
fmt.Println(references.Data, references.Truncated)$references = $bird->assets->references->list('ast_01krdgeqcxet5s7t44vh8rt9mg');
var_dump($references->getData(), $references->getTruncated());bird assets references list <asset-id>curl -X GET "https://us1.platform.bird.com/v1/assets/{asset_id}/references" \
-H "Authorization: Bearer $TOKEN"{
"data": [
{
"resource_type": "email_template",
"resource_id": "emt_01j9zyq8k7f0ra2m6c4x5w8pv3",
"usage": "draft"
}
]
}
Returns editable resources that reference this asset. Each entry indicates whether the reference appears in the resource's draft, published version, or both. Results reflect the latest saved versions, so they exclude unsaved editor changes and older published versions.
Only resources you have permission to read are included. Email-template references
require email_management:read in addition to assets:read. Hidden resources do not
affect the truncated flag.
Removing an asset does not break existing references because its original URL keeps serving. Use this list to find content that should reference a replacement asset.
Parámetros
asset_idstringID of the asset.
Carga de respuesta
datatruncatedTrue when more resources use this asset than one response can carry, so the list is a partial answer. Replace the asset's usages you can see, then list again to find the rest.
Recursos relacionados
Continúa con la documentación, guías y ejemplos de este tema.