Update Crawl Configuration

put

/api/20210901/system/searchIndex/actions/updateCrawlConfig

Update crawl configuration properties using a valid key and value. Currently, Oracle Analytics Cloud supports a single configuration property: DatamodelCrawlUser.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
An object representing the update payload for the crawl configuration.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : CrawlConfigItem
Type: object
An object which represents a crawl configuration property.
Show Source
  • A description of the key property.
  • The display name for the key property. For example, if the key is DatamodelCrawlUser, this is the display name of the user account that runs the data model crawl.
  • Allowed Values: [ "DatamodelCrawlUser" ]
    The search crawl configuration property to update. For example, DatamodelCrawlUser.
  • The value for the key property. For example, if the key is DatamodelCrawlUser, this is the user identifier used to run the data model crawl.
Back to Top

Response

Supported Media Types

200 Response

Crawl configuration update complete. Response contains the success or failure status for each item.
Body ()
Root Schema : CrawlConfigUpdateResponse
Type: object
Show Source
Nested Schema : results
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

400 Response

Bad Request (invalid query parameters, malformed headers, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

401 Response

Unauthorized (missing or expired credentials, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

403 Response

Forbidden (missing permissions for operation, request denied for unspecified reason, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

409 Response

Conflict (operation results in constraint violation, the operation is incompatible with the current state, and so on).
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

In this example, you update the user account that crawls the data model. The crawl configuration key is DatamodelCrawlUser.

cURL Example:

curl -i \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --request PUT \
  --data '{
    "items": [
      {
        "key": "DatamodelCrawlUser",
        "value": "jane.doe@example.com",
        "displayName": "Jane Doe",
        "description": "User account used to crawl the data model."
      }
    ]
  }' \
  'https://<hostname>/api/20210901/system/searchIndex/actions/updateCrawlConfig'

Example of Request Body

{
  "items": [
    {
      "key": "DatamodelCrawlUser",
      "value": "jane.doe@example.com",
      "displayName": "Jane Doe",
      "description": "User account used to crawl the data model."
    }
  ]
}

Example of Request Header

Not applicable.

Example of Response Body

{
  "results": [
    {
      "key": "DatamodelCrawlUser",
      "status": "SUCCESS"
    }
  ]
}
Back to Top