## Syntax

## Request fields for reindex

The following fields can be used in the reindex method:

Field nameObligationDefinition/Value
folderOptionalThe folder that you want to reindex. If not specified, all folders belonging to the user will be reindexed.
idOptionalThe job to check status of. If id is present, folder is ignored.
userRequiredThe user whose account you want to reindex.

## Response fields for reindex

The following fields may be returned in response to the reindex method:

Field nameObligationDescription/Value
errorReturned if **success = false**A text string that explains the error.
error_numberReturned if **success = false**A number that represents the error.
successAlways returnedIndicates whether the request was successful or not. Allowed values are true and false.

## Examples for reindex

## Example 1

This example reindexes the Inbox folder for account [[email protected]](🔗)



## Example 2

This example checks to see if the reindexing job completed and includes four possible responses.


**Response A** The job still pending.

**Response B**

The job is processing.

**Response C**

The job has completed.

**Response D**

The job ended with an error.