Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Analysis Templates
  • API Reference
    • Agents
      • List all agents
      • Create a new agent
      • Get an agent
      • Update an agent
      • Delete an agent
    • Tool Templates
      • List all tool templates
      • Create a new tool template
      • Get a tool template
      • Update a tool template
      • Delete a tool template
    • Numbers
      • List all phone numbers
      • Register a phone number
      • Get a phone number
      • Update a phone number
      • Delete a phone number
    • Calls
      • List calls
      • Get call by ID
      • Initiate outbound call
    • Call Control
      • Send control command to active call
    • Usage
      • Get usage logs
    • SIP Trunks
      • List SIP trunks
      • Create a SIP trunk
      • Get a SIP trunk
      • Delete a SIP trunk
    • Voices
      • List available voices
    • BYOK
      • Get BYOK configurations
      • Add BYOK configuration
      • Delete BYOK configuration
      • Get BYOK provider configurations
    • Domains
      • Get your domain
      • Add a domain
      • Delete your domain
      • List available Resend domains
      • Select and sync a Resend domain
      • Verify domain DNS records
      • Refresh domain status
    • Webhooks
      • Dynamic assistant configuration webhook
      • Tool/Function Call
      • Call Status Update
      • End of Call Report
    • Analysis Templates
      • List analysis templates
        GET
      • Create analysis template
        POST
      • Get analysis template
        GET
      • Update analysis template
        PATCH
      • Delete analysis template
        DELETE
    • Organization
      • Get organization information
    • Campaigns
      • List all campaigns
      • Create a campaign
      • Get a campaign
      • Update a campaign
      • Delete a campaign
      • List campaign leads
      • Add a lead
      • Remove a lead
  • Documentation
    • Get started
      • Quickstart
      • Introduction
      • Authentication
    • Core concepts
      • Agents
      • Phone numbers
      • Calls
      • Webhooks
    • Api's
      • Organization
      • Agents
      • Phone numbers
      • Sip trunks
      • Calls
      • Call control
      • Usage
      • Voices
      • BYOK
      • Domains
      • Analysis templates
      • Tool templates
    • Webhooks
      • Overview
      • Assistant request
      • Tool calls
      • Status update
      • End of call report
      • Security
    • Guides
      • BYOK Setup
      • Call analysis
      • Custom Tools
      • Call Transfers
      • xAI Realtime Integration
      • Analysis templates
      • Billing
      • Error codes
      • Rate limits
      • Sip Trunks
      • Tool templates
      • Troubleshooting
WebsiteLinkedin
WebsiteLinkedin
  1. Analysis Templates

Update analysis template

PATCH
https://api.flireo.com/api/v1/analysis-templates/{template_id}
Analysis Templates
Last modified:2026-01-09 14:25:39
Maintainer:Not configured
Update an existing analysis template

Request

Authorization
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Analysis template updated successfully
Body

🟠400
🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.flireo.com/api/v1/analysis-templates/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "description": "string",
    "system_prompt": "string",
    "user_prompt": "string",
    "schema": {},
    "is_active": true
}'
Response Response Example
200 - Example 1
{
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "org_id": "7461b868-afc1-4fe2-871a-5e7c0f3d5772",
    "name": "Customer Satisfaction Survey",
    "description": "Extract customer satisfaction metrics and feedback from support calls",
    "system_prompt": "You are analyzing a customer service call. Extract key satisfaction indicators and feedback.",
    "user_prompt": "Analyze this call transcript and extract: customer satisfaction level, main issues discussed, and whether the issue was resolved.\n\nTranscript: {transcript}",
    "schema": {
        "type": "object",
        "properties": {
            "satisfaction_level": {
                "type": "string",
                "description": "Overall customer satisfaction",
                "enum": [
                    "very_satisfied",
                    "satisfied",
                    "neutral",
                    "dissatisfied",
                    "very_dissatisfied"
                ]
            },
            "main_issues": {
                "type": "array",
                "description": "List of issues discussed during the call"
            },
            "issue_resolved": {
                "type": "boolean",
                "description": "Whether the customer's issue was resolved"
            }
        }
    },
    "is_active": true,
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-01-15T10:00:00Z"
}
Modified at 2026-01-09 14:25:39
Previous
Get analysis template
Next
Delete analysis template
Built with