## Syntax
## Request fields for reindex
The following fields can be used in the reindex method:
Field name | Obligation | Definition/Value |
folder | Optional | The folder that you want to reindex. If not specified, all folders belonging to the user will be reindexed. |
id | Optional | The job to check status of. If id is present, folder is ignored. |
user | Required | The user whose account you want to reindex. |
## Response fields for reindex
The following fields may be returned in response to the reindex method:
Field name | Obligation | Description/Value |
error | Returned if **success = false** | A text string that explains the error. |
error_number | Returned if **success = false** | A number that represents the error. |
success | Always returned | Indicates 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]](🔗)
**Request**
**Response**
## Example 2
This example checks to see if the reindexing job completed and includes four possible responses.
**Request**
**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.