---
title: "Update place_order tool configuration"
method: PATCH
path: "/agents/{agent_id}/tools/place-order"
tags: ["Agent Tools"]
---

# Update place_order tool configuration

`PATCH /agents/{agent_id}/tools/place-order`

Update configuration for the place_order tool.

    Allows you to configure:
    - Enable/disable the tool
    - SMS notification settings (creation, confirmation, refusal, cancellation)
    - SMS templates with placeholders
    - Default currency (3-letter ISO code)
    - Stock management (ignore_stock)
    - Auto-accept orders without manual approval

    SMS template placeholders:
    - Creation: {customer_name}, {customer_surname}, {order_id}, {link}
    - Refusal: additionally {reason}

    All fields are optional - only provide the fields you want to update.

    Authentication:
    - API key with READ_WRITE permission

## Path parameters

- `agent_id` string, uuid, required

## Request body

- object — Schema for updating place_order tool configuration.
  - `is_enabled` boolean, nullable — Enable or disable the tool
  - `send_sms` boolean, nullable — Send SMS when an order is created
  - `sms_template` string, nullable — SMS template for order creation. Must include {customer_name} and {order_id}. Optional placeholders: {customer_surname}, {link}
  - `default_currency` string, nullable — Default currency as 3-letter ISO code (e.g., EUR, USD)
  - `ignore_stock` boolean, nullable — If enabled, orders are placed without checking stock availability
  - `auto_accept` boolean, nullable — If enabled, orders are automatically confirmed without manual approval
  - `send_sms_on_confirmation` boolean, nullable — Send SMS when an order is confirmed
  - `sms_confirmation_template` string, nullable — SMS template for order confirmation. Placeholders: {customer_name}, {customer_surname}, {order_id}, {link}
  - `send_sms_on_refusal` boolean, nullable — Send SMS when an order is refused
  - `sms_refusal_template` string, nullable — SMS template for order refusal. Placeholders: {customer_name}, {customer_surname}, {order_id}, {link}, {reason}
  - `send_sms_on_cancellation` boolean, nullable — Send SMS when an order is cancelled
  - `sms_cancellation_template` string, nullable — SMS template for order cancellation. Placeholders: {customer_name}, {customer_surname}, {order_id}, {link}

## Response `200`

Successfully updated configuration

- object
  - `ok` boolean
  - `data` object
    - `name` string
    - `display_name` string
    - `description` string
    - `category` string
    - `category_display_name` string
    - `scope` string
    - `enabled` boolean
    - `is_configured` boolean
    - `can_disable` boolean
    - `icon_url` string
    - `version` string
    - `config_fields` object[]

## Other responses

- `400` — Invalid request data
- `401` — Invalid or missing API key
- `403` — Insufficient permissions
- `404` — Resource not found

---

[API](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1.md) · [All operations](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yourang/yourang-ai-external-api-v1/versions/49680ee64400/schema)
