Menu
Get Shares
List Shares
GET
/sharesUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Get Shares action (under Shares).
- Fill in the fields below, then reference the result from later steps as
{{getShares.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getShares.response.data.<field>}}.
{
"data": [
{
"id": "3a606c3e-9d4d-4556-b7bb-f00860613da3",
"name": "My Share",
"collection": "articles",
"item": "1",
"role": "2b34fba4-a6cb-49f4-a070-2daee7ac44f0",
"password": "**********",
"user_created": "b13072b7-73e9-4904-89e0-34aaf4403766",
"date_created": "2023-01-25T19:16:49.009Z",
"date_start": "2023-01-26T17:00:00.000Z",
"date_end": "2023-01-28T17:00:00.000Z",
"times_used": 0,
"max_uses": 15
}
],
"meta": {
"total_count": 0,
"filter_count": 0
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?