Skip to main content
PATCH
/
api
/
v1
/
coaching-agents
/
{uuid}
Update a coaching agent
curl --request PATCH \
  --url https://{subdomain}.mihu.ai/api/v1/coaching-agents/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "general_guidelines": "Always start with positive feedback. If the price was not mentioned during the conversation, point this out, explain that discussing price is essential for moving the customer toward a decision, and recommend the pricing video from the resource library.",
  "resource_library": [
    {
      "title": "Pricing Conversation Tutorial",
      "type": "video",
      "url": "https://example.com/pricing-tutorial",
      "description": "Recommended when the agent did not bring up price - how to handle the pricing conversation confidently.",
      "topics": "pricing, price objections, sales, closing"
    }
  ]
}
'
{
  "success": true,
  "message": "Coaching agent updated successfully",
  "data": {
    "uuid": "3f6a8c2e-9d1b-4e7a-b5c3-2a1f0e9d8c7b",
    "name": "Support Team Coach",
    "description": "Coaches the support team after every evaluation",
    "is_active": true,
    "is_default": true,
    "coaching_tone": "supportive",
    "coaching_frequency": "immediate",
    "auto_trigger_threshold": 70,
    "language": "English",
    "include_positive_feedback": true,
    "include_actionable_steps": true,
    "include_resources": true,
    "general_guidelines": "Always start with positive feedback.",
    "coaching_templates": [
      {
        "name": "Low Score Performance",
        "scenario": "When agent scores below 60%",
        "tone": "supportive",
        "template": "Let's review this call together...",
        "is_custom": false
      }
    ],
    "training_examples": [
      {
        "issue": "Agent scored 55% due to poor greeting",
        "coaching": "I noticed you interrupted the customer a few times..."
      }
    ],
    "resource_library": [
      {
        "title": "Active Listening Basics",
        "type": "video",
        "url": "https://example.com/active-listening",
        "description": "<string>",
        "topics": "empathy, listening"
      }
    ],
    "created_at": "2026-06-04T10:15:30+00:00",
    "updated_at": "2026-06-04T10:15:30+00:00"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

The coaching agent's uuid.

Body

application/json

Create/update payload. On update only the fields you send are changed; the template, example, and resource lists replace the existing ones when provided.

name
string
Maximum string length: 255
Example:

"Support Team Coach"

description
string | null
Example:

"Coaches the support team after every evaluation"

is_active
boolean
default:true
Example:

true

is_default
boolean
default:false

Send true to make this the default coach. To move the default away from an agent, set another one as default.

Example:

false

coaching_tone
string
default:supportive

supportive, direct, constructive, motivational — or your own wording, e.g. friendly but firm.

Maximum string length: 100
Example:

"supportive"

coaching_frequency
enum<string>
default:immediate

When coaching is generated. Currently immediate — after each evaluation.

Available options:
immediate
Example:

"immediate"

auto_trigger_threshold
integer
default:70

Coaching is generated automatically when an agent scores below this percentage.

Required range: 0 <= x <= 100
Example:

70

language
string
default:English

Language for coaching messages and feedback.

Maximum string length: 50
Example:

"English"

include_positive_feedback
boolean
default:true

Highlight what the agent did well.

Example:

true

include_actionable_steps
boolean
default:true

Provide specific steps for improvement.

Example:

true

include_resources
boolean
default:true

Recommend relevant training resources.

Example:

true

general_guidelines
string | null

Your coaching philosophy — applied to every coaching message.

Example:

"Always start with positive feedback. Be specific with examples."

coaching_templates
object[]

Templates for different scenarios. Sending this replaces the existing list. Leave it out on create to start with sample templates.

training_examples
object[]

Examples of your coaching style. Sending this replaces the existing list. Leave it out on create to start with a sample example.

resource_library
object[]

Training resources the AI can recommend. Sending this replaces the existing list.

Response

Coaching agent updated successfully

success
boolean
Example:

true

message
string
Example:

"Coaching agent updated successfully"

data
object

A coaching agent with its full configuration.