Skip to content

Set multiple line options (merge-patch)

PUT
/v1/ns/{nsid}/lines/{line}/opts
curl --request PUT \
--url https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lines/example/opts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dnd": true, "block_cid": true, "cf_always": "example", "cf_busy": "example", "cf_no_answer": "example", "cf_no_answer_sec": 1 }'
nsid
required
string format: uuid

Namespace UUID

line
required
string
Media typeapplication/json
object
dnd
boolean
block_cid
boolean
cf_always
string
cf_busy
string
cf_no_answer
string
cf_no_answer_sec
integer
Examplegenerated
{
"dnd": true,
"block_cid": true,
"cf_always": "example",
"cf_busy": "example",
"cf_no_answer": "example",
"cf_no_answer_sec": 1
}

OK

Media typeapplication/json
object
success
required
boolean
Example
{
"success": true
}

Error response

Media typeapplication/problem+json

RFC 7807 Problem Details

object
type

Problem type slug URI

string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example"
}