Open topic with navigation

# BuildAllObjects

Trains Media Server to recognize any objects that exist in its database and have incomplete or out-of-date training (any objects that have one or more images with a status of `untrained`). For example, you must re-train an object if you add new training images.

Type: asynchronous

Parameter | Description | Required
--- | --- | ---
`database` | The name of a database to process. Set this parameter to train Media Server to recognize objects in the specified database only. By default, this action trains Media Server to recognize objects in all databases. | No
`numparallel` | The maximum number of threads that the action can use (default 1). | No

## Example

    /action=BuildAllObjects

    /action=BuildAllObjects&numparallel=4

## Response

This action is asynchronous, so Media Server always returns success accompanied by a token:

    <autnresponse>
      <action>BUILDALLOBJECTS</action>
      <response>SUCCESS</response>
      <responsedata>
        <token>MTYuMjguOTQuMTcyOjE4MDAwOkJVSUxEQUxMRkFDRVM6MTQ0ODkwMjM3MDM4MjAxMTM1Mzg4MTc1</token>
      </responsedata>
    </autnresponse>

You can use this token with the QueueInfo action to retrieve the status of the action:

    <autnresponse>
      <action>QUEUEINFO</action>
      <response>SUCCESS</response>
      <responsedata>
        <actions>
          <action>
            <status>Finished</status>
            <queued_time>2016-Sep-23 12:00:10</queued_time>
            <time_in_queue>1</time_in_queue>
            <process_start_time>2016-Sep-23 12:00:11</process_start_time>
            <time_processing>0</time_processing>
            <process_end_time>2016-Sep-23 12:00:11</process_end_time>
            <entry>
              <build>
                <image>
                  <index>1</index>
                  <label>5f4d99f332e26214c9548f6f985fe512</label>
                  <status>trained</status>
                </image>
              </build>
              <database>CompanyLogos</database>
              <identifier>HPE</identifier>
              <numimages>1</numimages>
              <numtrained>1</numtrained>
            </entry>
            <token>MTYuMjguOTQuMTcyOjE4MDAwOkJVSUxEQUxMRkFDRVM6MTQ0ODkwMjM3MDM4MjAxMTM1Mzg4MTc1</token>
          </action>
        </actions>
      </responsedata>
    </autnresponse>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm