Menu
Link Media Library Asset
Link a Media Library asset to a dataset
POST
/media-library-link/{dataset}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Link Media Library Asset action (under Assets).
- Fill in the fields below, then reference the result from later steps as
{{linkMediaLibraryAsset.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"assetId": "string",
"mediaLibraryId": "string",
"assetInstanceId": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{linkMediaLibraryAsset.response.data.<field>}}.
{
"document": null
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?