Waiting for Customer Follow-Ups - Waiting for Customer Rules API

List all waiting for customer rules of a waiting for customer follow-up

List all waiting for customer rules of a waiting for customer follow-up with a specific ID.

GET /waiting_for_customer_follow_ups/:id/waiting_for_customer_rules

Response

Status: 200 OK
[
  {
    "id": 1,
    "nr_of_business_days": 7,
    "created_at": "2022-11-24T18:39:44-06:00",
    "updated_at": "2022-11-24T18:39:44-06:00"
  },
  {
    "id": 2,
    "nr_of_business_days": 14,
    "created_at": "2022-11-24T18:39:44-06:00",
    "updated_at": "2022-11-24T18:39:44-06:00"
  }
]

The response contains these fields by default.

Add a waiting for customer rule to a waiting for customer follow-up

Add a new waiting for customer rule to a waiting for customer follow-up with a specific ID.

POST /waiting_for_customer_follow_ups/:id/waiting_for_customer_rules

When adding a new rule to a waiting for customer follow-up these fields are available.

Response

Status: 200 OK
{}

Remove a waiting for customer rule from a waiting for customer follow-up

Remove the link between a waiting for customer follow-up with a specific ID and a waiting for customer rule with a specific ID.

DELETE /waiting_for_customer_follow_ups/:id/waiting_for_customer_rules/:rule_id

Response

Status: 204 No Content

Remove all waiting for customer rules from an waiting for customer follow-up

Remove all links between a waiting for customer follow-up with a specific ID and its waiting for customer rules.

DELETE /waiting_for_customer_follow_ups/:id/waiting_for_customer_rules

Response

Status: 204 No Content

Fields

created_at
Readonly datetime — The date and time at which the waiting for customer rule was created.
id
Readonly integer — The unique ID of the waiting for customer rule.
nr_of_business_days
Required integer — The number of business days to wait before a notification should be generated.
updated_at
Readonly datetime — The date and time of the last update of the waiting for customer rule. If the waiting for customer rule has no updates it contains the created_at value.