Deploying to decision runtime with REST API

You can deploy decision service archives by using the runtime REST API.

Before you begin

For more information about the runtime REST API methods that are mentioned in the procedure, see Runtime REST API reference.

Procedure

  1. Deploy a decision service archive by using the following runtime REST API method:
    POST https://<server>:<port>/ads/runtime/api/v1/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId}/archive
    • <server> is the hostname of the decision runtime, which is specified in the decision_runtime.ingress.hostname parameter.
    • <port> is the port of the decision runtime.
  2. Set additional metadata (for example, metadata for machine learning providers) by using the following runtime REST API method:
    PUT https://<server>:<port>/ads/runtime/api/v1/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId}/metadata

    For more information about the metadata, see Decision service metadata.