User Panel Pairing
curl --request POST \
--url https://apigw.bienport.com/api/enterprise/bulk/set-panel-user \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'OrganizationId: <organizationid>' \
--header 'authorization: <authorization>' \
--data '
{
"userPanelPairList": [
{
"masterPinCode": "<string>",
"notificationOption": {
"assignee": true,
"assigner": true,
"contacts": true,
"email": true,
"id": 123,
"pushMessage": true,
"sms": true,
"userId": 123
},
"oldPinCode": "<string>",
"key": "s01",
"pinCode": "1234",
"resourceId": 12341234,
"partitionNo": 1,
"slotNo": 1,
"userId": 12341234
}
],
"notificationOptions": {
"channels": [
"<string>"
],
"audience": [
"<string>"
],
"userId": 12343123
}
}
'import requests
url = "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user"
payload = {
"userPanelPairList": [
{
"masterPinCode": "<string>",
"notificationOption": {
"assignee": True,
"assigner": True,
"contacts": True,
"email": True,
"id": 123,
"pushMessage": True,
"sms": True,
"userId": 123
},
"oldPinCode": "<string>",
"key": "s01",
"pinCode": "1234",
"resourceId": 12341234,
"partitionNo": 1,
"slotNo": 1,
"userId": 12341234
}
],
"notificationOptions": {
"channels": ["<string>"],
"audience": ["<string>"],
"userId": 12343123
}
}
headers = {
"Authorization": "<authorization>",
"OrganizationId": "<organizationid>",
"authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
OrganizationId: '<organizationid>',
authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userPanelPairList: [
{
masterPinCode: '<string>',
notificationOption: {
assignee: true,
assigner: true,
contacts: true,
email: true,
id: 123,
pushMessage: true,
sms: true,
userId: 123
},
oldPinCode: '<string>',
key: 's01',
pinCode: '1234',
resourceId: 12341234,
partitionNo: 1,
slotNo: 1,
userId: 12341234
}
],
notificationOptions: {channels: ['<string>'], audience: ['<string>'], userId: 12343123}
})
};
fetch('https://apigw.bienport.com/api/enterprise/bulk/set-panel-user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userPanelPairList' => [
[
'masterPinCode' => '<string>',
'notificationOption' => [
'assignee' => true,
'assigner' => true,
'contacts' => true,
'email' => true,
'id' => 123,
'pushMessage' => true,
'sms' => true,
'userId' => 123
],
'oldPinCode' => '<string>',
'key' => 's01',
'pinCode' => '1234',
'resourceId' => 12341234,
'partitionNo' => 1,
'slotNo' => 1,
'userId' => 12341234
]
],
'notificationOptions' => [
'channels' => [
'<string>'
],
'audience' => [
'<string>'
],
'userId' => 12343123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"OrganizationId: <organizationid>",
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user"
payload := strings.NewReader("{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("OrganizationId", "<organizationid>")
req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apigw.bienport.com/api/enterprise/bulk/set-panel-user")
.header("Authorization", "<authorization>")
.header("OrganizationId", "<organizationid>")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.bienport.com/api/enterprise/bulk/set-panel-user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["OrganizationId"] = '<organizationid>'
request["authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"success": true
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}User Panel Pairing
POST
/
enterprise
/
bulk
/
set-panel-user
User Panel Pairing
curl --request POST \
--url https://apigw.bienport.com/api/enterprise/bulk/set-panel-user \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'OrganizationId: <organizationid>' \
--header 'authorization: <authorization>' \
--data '
{
"userPanelPairList": [
{
"masterPinCode": "<string>",
"notificationOption": {
"assignee": true,
"assigner": true,
"contacts": true,
"email": true,
"id": 123,
"pushMessage": true,
"sms": true,
"userId": 123
},
"oldPinCode": "<string>",
"key": "s01",
"pinCode": "1234",
"resourceId": 12341234,
"partitionNo": 1,
"slotNo": 1,
"userId": 12341234
}
],
"notificationOptions": {
"channels": [
"<string>"
],
"audience": [
"<string>"
],
"userId": 12343123
}
}
'import requests
url = "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user"
payload = {
"userPanelPairList": [
{
"masterPinCode": "<string>",
"notificationOption": {
"assignee": True,
"assigner": True,
"contacts": True,
"email": True,
"id": 123,
"pushMessage": True,
"sms": True,
"userId": 123
},
"oldPinCode": "<string>",
"key": "s01",
"pinCode": "1234",
"resourceId": 12341234,
"partitionNo": 1,
"slotNo": 1,
"userId": 12341234
}
],
"notificationOptions": {
"channels": ["<string>"],
"audience": ["<string>"],
"userId": 12343123
}
}
headers = {
"Authorization": "<authorization>",
"OrganizationId": "<organizationid>",
"authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
OrganizationId: '<organizationid>',
authorization: '<authorization>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
userPanelPairList: [
{
masterPinCode: '<string>',
notificationOption: {
assignee: true,
assigner: true,
contacts: true,
email: true,
id: 123,
pushMessage: true,
sms: true,
userId: 123
},
oldPinCode: '<string>',
key: 's01',
pinCode: '1234',
resourceId: 12341234,
partitionNo: 1,
slotNo: 1,
userId: 12341234
}
],
notificationOptions: {channels: ['<string>'], audience: ['<string>'], userId: 12343123}
})
};
fetch('https://apigw.bienport.com/api/enterprise/bulk/set-panel-user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userPanelPairList' => [
[
'masterPinCode' => '<string>',
'notificationOption' => [
'assignee' => true,
'assigner' => true,
'contacts' => true,
'email' => true,
'id' => 123,
'pushMessage' => true,
'sms' => true,
'userId' => 123
],
'oldPinCode' => '<string>',
'key' => 's01',
'pinCode' => '1234',
'resourceId' => 12341234,
'partitionNo' => 1,
'slotNo' => 1,
'userId' => 12341234
]
],
'notificationOptions' => [
'channels' => [
'<string>'
],
'audience' => [
'<string>'
],
'userId' => 12343123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"OrganizationId: <organizationid>",
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apigw.bienport.com/api/enterprise/bulk/set-panel-user"
payload := strings.NewReader("{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("OrganizationId", "<organizationid>")
req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apigw.bienport.com/api/enterprise/bulk/set-panel-user")
.header("Authorization", "<authorization>")
.header("OrganizationId", "<organizationid>")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.bienport.com/api/enterprise/bulk/set-panel-user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["OrganizationId"] = '<organizationid>'
request["authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userPanelPairList\": [\n {\n \"masterPinCode\": \"<string>\",\n \"notificationOption\": {\n \"assignee\": true,\n \"assigner\": true,\n \"contacts\": true,\n \"email\": true,\n \"id\": 123,\n \"pushMessage\": true,\n \"sms\": true,\n \"userId\": 123\n },\n \"oldPinCode\": \"<string>\",\n \"key\": \"s01\",\n \"pinCode\": \"1234\",\n \"resourceId\": 12341234,\n \"partitionNo\": 1,\n \"slotNo\": 1,\n \"userId\": 12341234\n }\n ],\n \"notificationOptions\": {\n \"channels\": [\n \"<string>\"\n ],\n \"audience\": [\n \"<string>\"\n ],\n \"userId\": 12343123\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"success": true
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}This response has no body data.{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}{
"statusCode": 123,
"error": "***Exception",
"message": "Message about the error",
"path": "/api/example/path"
}Headers
Access Token
Organization ID
authorization
Body
application/json
userPanelPairingRequest
Was this page helpful?
⌘I