List Connection-types
List Connection-types
GET
https://api.ocamba.com/v2/ocamba/connection-types
Returns a list of Connection-typesQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/connection-types" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/connection-types';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/ocamba/connection-types");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 5,
"items": [
{
"id": "2",
"name": "cable/dsl"
},
{
"id": "4",
"name": "cellular"
},
{
"id": "3",
"name": "corporate"
},
{
"id": "1",
"name": "dialup"
},
{
"id": "0",
"name": "unknown"
}
]
}
Responses
Tip
Searchable field is name.
Sortable fields are name and id.
Filterable fields are name and id.