Fortinet black logo

Assign report templates

Assign report templates

Method

URL

Description

Arguments

Outputs

POST

device/report/assign/

Assign report templates

None

JSON array

Arguments (URL)

None.

Arguments

Parameter

Type

Description

customerId

int

The organization ID

reports

array

List of report IDs to assign to the organization

Outputs

Parameter

Type

Description

status

JSON array

A success or failure message

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 7f89ef48dc5bca218a8ac0268653ffafa74ce6a6ed7a8a703e113b13219b18a6" -d '{"customerId":1,"reports":[297]}' "https://<ip_address>/fpc/v1/api/device/report/assign/

Example response

{

"status" : {

"code" : 0,

"message" : "success"

}

}

Assign report templates

Method

URL

Description

Arguments

Outputs

POST

device/report/assign/

Assign report templates

None

JSON array

Arguments (URL)

None.

Arguments

Parameter

Type

Description

customerId

int

The organization ID

reports

array

List of report IDs to assign to the organization

Outputs

Parameter

Type

Description

status

JSON array

A success or failure message

Example request

curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Token 7f89ef48dc5bca218a8ac0268653ffafa74ce6a6ed7a8a703e113b13219b18a6" -d '{"customerId":1,"reports":[297]}' "https://<ip_address>/fpc/v1/api/device/report/assign/

Example response

{

"status" : {

"code" : 0,

"message" : "success"

}

}