sitecore · Capability

Sitecore Personalize REST API — Decision Models

Sitecore Personalize REST API — Decision Models. 4 operations. Lead operation: List decision models. Self-contained Naftiko capability covering one Sitecore business surface.

Run with Naftiko SitecoreDecision Models

What You Can Do

GET
Listdecisionmodels — List decision models
/v1/v1/decision-models
POST
Createdecisionmodel — Create a decision model
/v1/v1/decision-models
GET
Getdecisionmodel — Get a decision model
/v1/v1/decision-models/{id}
PUT
Updatedecisionmodel — Update a decision model
/v1/v1/decision-models/{id}

MCP Tools

list-decision-models

List decision models

read-only idempotent
create-decision-model

Create a decision model

get-decision-model

Get a decision model

read-only idempotent
update-decision-model

Update a decision model

idempotent

Capability Spec

personalize-rest-decision-models.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sitecore Personalize REST API — Decision Models
  description: 'Sitecore Personalize REST API — Decision Models. 4 operations. Lead operation: List decision models. Self-contained
    Naftiko capability covering one Sitecore business surface.'
  tags:
  - Sitecore
  - Decision Models
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SITECORE_API_KEY: SITECORE_API_KEY
capability:
  consumes:
  - type: http
    namespace: personalize-rest-decision-models
    baseUri: https://api.boxever.com
    description: Sitecore Personalize REST API — Decision Models business capability. Self-contained, no shared references.
    resources:
    - name: v1-decision-models
      path: /v1/decision-models
      operations:
      - name: listdecisionmodels
        method: GET
        description: List decision models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdecisionmodel
        method: POST
        description: Create a decision model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-decision-models-id
      path: /v1/decision-models/{id}
      operations:
      - name: getdecisionmodel
        method: GET
        description: Get a decision model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatedecisionmodel
        method: PUT
        description: Update a decision model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.SITECORE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: personalize-rest-decision-models-rest
    port: 8080
    description: REST adapter for Sitecore Personalize REST API — Decision Models. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/decision-models
      name: v1-decision-models
      description: REST surface for v1-decision-models.
      operations:
      - method: GET
        name: listdecisionmodels
        description: List decision models
        call: personalize-rest-decision-models.listdecisionmodels
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdecisionmodel
        description: Create a decision model
        call: personalize-rest-decision-models.createdecisionmodel
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/decision-models/{id}
      name: v1-decision-models-id
      description: REST surface for v1-decision-models-id.
      operations:
      - method: GET
        name: getdecisionmodel
        description: Get a decision model
        call: personalize-rest-decision-models.getdecisionmodel
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatedecisionmodel
        description: Update a decision model
        call: personalize-rest-decision-models.updatedecisionmodel
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: personalize-rest-decision-models-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sitecore Personalize REST API — Decision Models. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-decision-models
      description: List decision models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: personalize-rest-decision-models.listdecisionmodels
      outputParameters:
      - type: object
        mapping: $.
    - name: create-decision-model
      description: Create a decision model
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: personalize-rest-decision-models.createdecisionmodel
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-decision-model
      description: Get a decision model
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: personalize-rest-decision-models.getdecisionmodel
      outputParameters:
      - type: object
        mapping: $.
    - name: update-decision-model
      description: Update a decision model
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: personalize-rest-decision-models.updatedecisionmodel
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.