Skip to main content
PUT
/
v1.0
/
routing
/
rule
/
{type}
Update a routing rule
curl --request PUT \
  --url https://api.lofty.com/v1.0/routing/rule/{type} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "id": 123,
  "activeHours": {
    "activeDays": [
      1,
      2,
      3,
      4,
      5
    ],
    "hoursStart": 123,
    "hoursEnd": 123
  },
  "routingStrategy": {
    "strategyType": 123,
    "groupId": 123,
    "groupName": "<string>",
    "touchMinutes": 123,
    "memberWeights": {
      "memberId": 123,
      "firstName": "<string>",
      "lastName": "<string>",
      "weight": 123
    }
  }
}
'
"ok"

Documentation Index

Fetch the complete documentation index at: https://developer.lofty.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Path Parameters

type
enum<integer>
required

Routing business type.

Available options:
1,
2,
4

Body

application/json

Routing rule payload. id is required.

id
integer<int64>

Rule id

activeHours
object

Active hours setting

routingStrategy
object

Active hours setting

Response

Rule updated.

The response is of type string.

Example:

"ok"