Partial update Assistant is broken (provider.model...
# support
a
Assistant ID: 538e36b9-3c88-404c-bd37-0484cece3a02 We try to do PATCH request on `https://api.vapi.ai/assistant/:assistant_id with this following body:
Copy code
json
{
    "name": "...",
    "voice": {
        "model": "eleven_turbo_v2",
        "voiceId": "QrRJx7pPvPGFVMtAx4IR",
        "provider": "11labs",
        "enableSsmlParsing": true,
        "inputReformattingEnabled": false,
        "inputPreprocessingEnabled": true
    },
    "model": {
        "url": "...",
        "model": "...",
        "toolIds": [
            "..."
        ],
        "provider": "custom-llm"
    },
    "firstMessage": "...",
    "language": "en",
    "endCallFunctionEnabled": true,
    "transcriber": {
        "language": "es",
        "provider": "deepgram",
        "model": "nova-2-general"
    },
    "silenceTimeoutSeconds": 600,
    "clientMessages": [
        "transcript",
        "hang",
        "function-call",
        "speech-update",
        "metadata",
        "transfer-update",
        "conversation-update"
    ],
    "serverMessages": [
        "end-of-call-report",
        "status-update",
        "hang",
        "function-call"
    ],
    "hipaaEnabled": false,
    "metadata": {},
    "voicemailDetectionEnabled": false,
    "backchannelingEnabled": false,
    "backgroundDenoisingEnabled": true,
    "startSpeakingPlan": {
        "transcriptionEndpointingPlan": {
            "onPunctuationSeconds": 0.5,
            "onNoPunctuationSeconds": 1,
            "onNumberSeconds": 1.3
        }
    }
}
But provider.model is not still set, and on GET request (or on calls) we're missing provider model (check these calls as an example: 895c037c-d67b-478f-9335-6db538d3e987, 6c39aeae-57b4-4c60-b10e-85f81bb65cc3).
@User
s
@anyhero looking into it.
@anyhero When your making the PATCH your also passing the orgId and assistantID and because of this the PATCH request is failing for you.
🔴 18:40:10:328 PATCH /assistant/091ae3e9-0537-479d-9f83-8c25dd7c50ba, BadRequestException 400 (d) Response:
Copy code
json
{
  "message": [
    "property id should not exist",
    "property orgId should not exist",
    "property createdAt should not exist",
    "property updatedAt should not exist",
    "property isServerUrlSecretSet should not exist"
  ],
  "error": "Bad Request",
  "statusCode": 400
}
Request: {
  "body": {
    "id": "538e36b9-3c88-404c-bd37-0484cece3a02",
    "orgId": "8xxxxxxxx5e5",
    "name": "vapi_caller",
    "voice": {
      "model": "eleven_turbo_v2",
      "voiceId": "QrRJxxxxx4IR",
      "provider": "11labs",
      "enableSsmlParsing": true,
      "inputReformattingEnabled": false,
      "inputPreprocessingEnabled": true
    },
    "createdAt": "2025-02-12T16:14:47.445Z",
    "updatedAt": "2025-02-14T18:37:54.367Z",
    "model": {
      "url": "httpsxxxxxxx",
      "model": "nxxxxrod",
      "toolIds": ["cd5abcc1-0174-4a2b-be24-cf8d9ce867aa"],
      "provider": "custom-llm"
    },
    "firstMessage": "H,,,,,,,,xxxxxxxxx",
    "language": "en",
    "endCallFunctionEnabled": true,
    "transcriber": {
      "language": "es",
      "provider": "deepgram",
      "model": "nova-2-general"
    },
    "silenceTimeoutSeconds": 600,
    "clientMessages": [
      "transcript",
      "hang",
      "function-call",
      "speech-update",
      "metadata",
      "transfer-update",
      "conversation-update"
    ],
    "serverMessages": [
      "end-of-call-report",
      "status-update",
      "hang",
      "function-call"
    ],
    "hipaaEnabled": false,
    "metadata": {
      "connectorId": "51c7dadc-9557-455c-a3e9-6d89e56ca90d"
    },
    "voicemailDetectionEnabled": false,
    "backchannelingEnabled": false,
    "backgroundDenoisingEnabled": true,
    "startSpeakingPlan": {
      "transcriptionEndpointingPlan": {
        "onPunctuationSeconds": 0.5,
        "onNoPunctuationSeconds": 1,
        "onNumberSeconds": 1.3
      }
    },
    "isServerUrlSecretSet": false
  },
  "url": "
}
a
Sorry but there're no such fields in initial request, are you sure about that?
I've tried some requests locally for testing purpose, but the actual request is not as you've described here, please double check @Shubham Bajaj
s
@anyhero what I can see in logs is last call was around 23:08 UTC 13th Feb, after that one patch request and this is what I directly pull from the logs.
If you want I can share it in DM, the complete request without any hidden data.
c
Hey [jezreel](https://app.plain.com/workspace/w_01HYEQ5FKPH8CPX2MS608B6S51/customers/c_01JM1GY0W54R4601Y3SAJF12SY/) can you ping me to your support ticket and share all of the related call IDs and phone number ID over there.
4 Views