### Resync indexer permissions (preview REST API)
# API version: 2026-08-01-preview
# Applies to ADLS Gen2 and Blob Storage when native ACLs change without modifying blob LastModified.
# Resync flags permission metadata for re-evaluation without re-extracting text or re-embedding chunks.
POST https://{{searchService}}.search.windows.net/indexers/{{indexerName}}/resync?api-version=2026-08-01-preview
Authorization: Bearer {{token}}
Content-Type: application/json

{
  "options": [
    "permissions"
  ]
}

### Trigger first indexer execution (runs in resync mode)
POST https://{{searchService}}.search.windows.net/indexers/{{indexerName}}/run?api-version=2026-04-01
Authorization: Bearer {{token}}

### Check indexer execution status
# Monitor currentState.mode:
# During resync execution, mode is "indexingResync".
# Once resync finishes, mode reverts to "indexingAllDocs".
GET https://{{searchService}}.search.windows.net/indexers/{{indexerName}}/status?api-version=2026-08-01-preview
Authorization: Bearer {{token}}

### Trigger second indexer execution (resumes normal high-water mark processing)
# Must run after mode returns to "indexingAllDocs" so standard incremental indexing continues.
POST https://{{searchService}}.search.windows.net/indexers/{{indexerName}}/run?api-version=2026-04-01
Authorization: Bearer {{token}}
