Get a field rule
get
/v1/field-rules/{root}/{field_key}Returns a single field rule by root and field key.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| root | string | Yes | Root. |
| field_key | string | Yes | FieldKey.e.g. FieldKey |
Request
cURL
curl -X GET https://api.wellapp.ai/v1/field-rules/{root}/{field_key} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
200 — Field rule.
{
"data": {}
}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"
}
}