Replace Resources
Set exactly which resources and aliases sync into the store. Newly selected ones are queued; anything not listed stops syncing.
An alias from the listing's aliases selects every resource of its kind, new ones included: Gmail's
all_mail, Granola's all_notes, Outlook's all_folders, or a Slack conversation kind such as
private_channels. An Outlook folder syncs the folders inside it as well, new ones included. Selecting
every alias the installation offers is the same as sync_all on the sync endpoint.
ApiKeyAuthAuthorizationBearer <token>Api key to access Mixedbreads API
installation_id*Installation IdInstallation ID, as returned when the account connected
uuidapplication/json- 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
The updated selection
application/json- response
Response containing the outcome of replacing a selection.
data*The updated selection
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"
]
}'
{
"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": {}
}
}