curl --request PUT \
--url https://api.comm.com/api/v1/sms/routing/plans/{plan} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"is_default": true
}'
{
"data": {
"id": "<string>",
"team_id": "<string>",
"team": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"balance": 123
},
"name": "<string>",
"is_default": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"connections_count": "<string>",
"sms_routes_count": "<string>"
}
}
curl --request PUT \
--url https://api.comm.com/api/v1/sms/routing/plans/{plan} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"is_default": true
}'
{
"data": {
"id": "<string>",
"team_id": "<string>",
"team": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"balance": 123
},
"name": "<string>",
"is_default": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"connections_count": "<string>",
"sms_routes_count": "<string>"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The plan ID
SmsRoutingPlanResource
The response is of type object
.