PUThttps://core-api.heysadie.ai/sms-reasons/{id}
id name reason message assistantId content properties success data createdAt updatedAt metadata timestamp version path error code details fieldReplace sms reason
Try it in the API ExplorerExample request
curl -X PUT "https://core-api.heysadie.ai/sms-reasons/SMS_REASON_ID" \
-H "Authorization: ApiKey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"reason": "string",
"message": "string"
}'Authentication
Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.
AuthorizationstringrequiredAPI key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.
X-Tenant-Idstring (uuid)optionalRequired when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.
Request
Path parameters
idstringrequiredThe resource's UUID.
Body application/json · required
namestringoptionalA friendly label for this SMS reason
reasonstringoptionalThe event or trigger that causes this SMS to be sent (e.g., user asks for a price list)
messagestringoptionalWhat the assistant says before sending the SMS (e.g., 'I'll send you the price list via SMS')
assistantIdstring (uuid)optionalThe assistant ID this reason is associated with
contentstringoptionalThe actual SMS message to be sent to the caller (e.g., a link or info)
propertiesanyoptionalResponses
successbooleanrequireddataobjectoptionalShow 9 child properties
idstringrequirednamestringrequiredreasonstringrequiredmessagestringrequiredassistantIdstringrequiredpropertiesanyrequiredcontentstringrequiredcreatedAtstring (date-time) | string (date) | number | nullrequiredupdatedAtstring (date-time) | string (date) | number | nullrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional400
successbooleanrequirederrorobjectoptionalShow 3 child properties
codeenumrequired"VALIDATION_ERROR"messagestringrequireddetailsobject[]optionalShow 2 item properties
fieldstringrequiredmessagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional401
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"UNAUTHORIZED"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional403
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"FORBIDDEN"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional404
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"RESOURCE_NOT_FOUND"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional500
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequired"INTERNAL_SERVER_ERROR"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional