Mixedbread

Replace Resources

Set exactly which resources and aliases sync into the store. Newly selected ones are queued; anything not listed stops syncing.

PUT
/v1/integrations/installations/{installation_id}/resources

An alias from the listing's aliases selects every resource of its kind, new ones included: Gmail's all_mail, Granola's all_notes, or a Slack conversation kind such as private_channels. Selecting every alias the installation offers is the same as sync_all on the sync endpoint.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Api key to access Mixedbreads API

Path Parameters

installation_id*Installation Id

Installation ID, as returned when the account connected

Formatuuid

Request Body

application/json
  1. body

The complete selection

resource_ids?array<string>

Complete set of resource IDs to sync; anything not listed stops syncing

resource_aliases?array<>

Complete set of aliases to sync, from the listing's aliases. An alias covers every resource of its kind, new ones included; anything not listed stops syncing

Response Body

The updated selection

application/json
  1. response

Response containing the outcome of replacing a selection.

data*

The updated selection

Example Request
cURL
curl -X PUT https://api.mixedbread.com/v1/integrations/installations/7b3d5f1a-9c2e-4a8b-b6d4-1e0f3c5a7d92/resources \  -H 'Content-Type: application/json' \  -H 'Authorization: Bearer YOUR_API_KEY' \  -d '{    "resource_aliases": [      "private_channels",      "direct_messages",      "group_messages"    ],    "resource_ids": [      "C067DDX8J2X"    ]  }'
Example Response
{  "data": {    "installation_id": "7b3d5f1a-9c2e-4a8b-b6d4-1e0f3c5a7d92",    "store_id": "c4a6e8f0-2b1d-4c3e-9a5f-7e6d5c4b3a21",    "selected_resource_ids": [      "C067DDX8J2X",      "G0B7TQ2M4KD",      "D0ADMEQP5P1",      "C0AEUC2HDAN"    ],    "selected_resource_aliases": [      "private_channels",      "direct_messages",      "group_messages"    ],    "queued_resource_ids": [      "G0B7TQ2M4KD",      "C0AEUC2HDAN"    ],    "skipped_resources": {}  }}