Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /system/task/{id}

Post /system/task/{id}

Description

Updates an existing task record in the database.

Request Parameter

Id, the task record DBID.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/system/task/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"landscape": 0,

"id": 1,

"state": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"eventTag": "string",

"taskType": "string",

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-02-14T23:38:43.553Z",

"lastChangeSummary": "string",

"message": "string",

"description": "string",

"removeMessage": "string",

"modifyAuditSummary": "string",

"name": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"addAuditSummary": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /system/task/{id}

Post /system/task/{id}

Description

Updates an existing task record in the database.

Request Parameter

Id, the task record DBID.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/system/task/1

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"landscape": 0,

"id": 1,

"state": "string",

"elementType": "string",

"nameTag": "string",

"scheduledObjectType": "string",

"eventTag": "string",

"taskType": "string",

"version": 0,

"lastModifiedBy": "string",

"lastModifiedDate": "2024-02-14T23:38:43.553Z",

"lastChangeSummary": "string",

"message": "string",

"description": "string",

"removeMessage": "string",

"modifyAuditSummary": "string",

"name": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"addAuditSummary": "string"

}

Sample Response

{

"status": "success",

"errorMessage": null

}