Recompute a custom column for records
post
/v1/custom-columns/{custom_column_id}/computeEnqueues async recomputation of a custom column for a batch of records (1-500). Returns 202.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| custom_column_id | string <uuid> | Yes | ID.e.g. 00000000-0000-4000-8000-000000000000 |
Request
cURL
curl -X POST https://api.wellapp.ai/v1/custom-columns/{custom_column_id}/compute \
-H "Authorization: Bearer $WELL_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": {
"type": "custom_column_compute",
"attributes": {
"root": "companies",
"record_ids": [
"co_1",
"co_2"
]
}
}
}'Request body
{
"data": {
"type": "custom_column_compute",
"attributes": {
"root": "companies",
"record_ids": [
"co_1",
"co_2"
]
}
}
}Responses
202 — Recompute accepted.
{
"data": {
"type": "custom_column_compute",
"attributes": {
"status": "accepted",
"custom_column_id": "cc_1",
"record_count": 2
}
}
}400 — Validation error.
{
"code": "BAD_REQUEST",
"status": 400,
"title": "Bad Request",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}401 — Unauthorized.
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Not found.
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}