POST /customers/{id}/refresh-profile
Updated Oct 1, 20261 minute read
Refresh the profile
Asks the learned profile to catch up on settled conversations. rebuild: true wipes it and reads the history afresh. Calling it again while nothing needs doing is free.
Part of Customers.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | A customer id. |
Request body
application/json, optional.
| Field | Type | Required | Description |
|---|---|---|---|
rebuild | boolean | No |
Responses
| Status | Description |
|---|---|
202 | Accepted. The work happens in the background. |
401 | The bearer token is missing, revoked, or expired. |
404 | Not one of yours, or not there at all. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
202 body
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | No |
Example request
curl -X POST https://api.median.sh/v1/customers/id/refresh-profile \
-H "Authorization: Bearer $BEARER_AUTH"