Mixedbread
EndpointsIntegrations

Replace Resources

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

Authorization

Authorizationstringrequired

Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`

Path Parameters

installation_idstring(uuid)required

Installation ID, as returned when the account connected

Request Body

resource_idsstring[]

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

Response Body

Request
cURL
PUT/v1/integrations/installations/{installation_id}/resources
curl -X PUT https://api.mixedbread.com/v1/integrations/installations/2f1c9a8e-6b4d-4e3a-9c1f-7d8e5b6a4c21/resources \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "resource_ids": [
      "INBOX",
      "Label_12"
    ]
  }'
Response
JSON
{
  "data": {
    "installation_id": "2f1c9a8e-6b4d-4e3a-9c1f-7d8e5b6a4c21",
    "store_id": "5d3e7f9a-1b2c-4d6e-8f0a-9c8b7a6d5e4f",
    "selected_resource_ids": [
      "INBOX",
      "Label_12"
    ],
    "queued_resource_ids": [
      "INBOX",
      "Label_12"
    ],
    "skipped_resources": {}
  }
}