Fortinet white logo
Fortinet white logo

Customers domain

Customers domain

GET example

Request

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

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Response

{

"domainId": 1,

"domainNames": [

"abc.com",

"test.com",

"hello.com"

],

"type": "CUST",

"customerId": 1

}

POST example (update domains)

Request

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

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Payload

{

"domainNames": [

"abc.com",

"xyz.com"

],

"customerId": 1

}

Response

Status 200 OK

Validation

If domain names are not unique, more than 10, or does not satisfy characters criteria, it will respond as Status 400 Bad Request and with message as follows:

  • {"domainNames": "Domain Name must be unique, xyz.com,def.com already exists"}
  • {"domainNames": "Domain Name (xdfd23232!@#yzcom) is Invalid"}
  • { "domainNames": "Domain Names count reached max limit of 10"}

Customers domain

Customers domain

GET example

Request

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

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Response

{

"domainId": 1,

"domainNames": [

"abc.com",

"test.com",

"hello.com"

],

"type": "CUST",

"customerId": 1

}

POST example (update domains)

Request

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

Headers

accept: application/json

content-type: application/json

fpc-sid: $FPCSID

Cookie: JSESSIONID=$FPCSID

Payload

{

"domainNames": [

"abc.com",

"xyz.com"

],

"customerId": 1

}

Response

Status 200 OK

Validation

If domain names are not unique, more than 10, or does not satisfy characters criteria, it will respond as Status 400 Bad Request and with message as follows:

  • {"domainNames": "Domain Name must be unique, xyz.com,def.com already exists"}
  • {"domainNames": "Domain Name (xdfd23232!@#yzcom) is Invalid"}
  • { "domainNames": "Domain Names count reached max limit of 10"}