Fortinet white logo
Fortinet white logo

Customers widget permission

Customers widget permission

GET example

Request

GET http://localhost:8080/fpc/api/customers/1/widgets

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Response

{

"widgetPermissionId" : 1,

"customerId" : 1,

"widgets" : [{

"widgetId" : 4,

"name" : "Top Application Category",

"uid" : "topAppCategory"

}, {

"widgetId" : 7,

"name" : "Top Web",

"uid" : "topWeb"

}

]

}

POST example (update domains)

Request

POST http://localhost:8080/fpc/api/customers/1/widgets

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Payload

{

"customerId" : 1,

"widgets" : [{

"widgetId" : 4

}, {

"widgetId" : 7

}

]

}

Response

Status 200 OK

Customers widget permission

Customers widget permission

GET example

Request

GET http://localhost:8080/fpc/api/customers/1/widgets

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Response

{

"widgetPermissionId" : 1,

"customerId" : 1,

"widgets" : [{

"widgetId" : 4,

"name" : "Top Application Category",

"uid" : "topAppCategory"

}, {

"widgetId" : 7,

"name" : "Top Web",

"uid" : "topWeb"

}

]

}

POST example (update domains)

Request

POST http://localhost:8080/fpc/api/customers/1/widgets

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Payload

{

"customerId" : 1,

"widgets" : [{

"widgetId" : 4

}, {

"widgetId" : 7

}

]

}

Response

Status 200 OK