| Solution | - Log in to FortiManager using the CSRF method mentioned in the article: Technical Tip: How to login to FortiManager/FortiAnalyzer using API with CSRF cookies.
- Create a new POST request with 'https://{{host}}/cgi-bin/module/flatui/json'.
- Under the 'header' tab of this request, add a new entry and use the variable {{csrf_token}}, which was created in step #3:
Key: XSRF-TOKEN | Value: {{csrf_token}}  - In the body of this new request, add the following query:
{ "id": "1", "method": "exec", "params": [ { "data": { "flags": [ "create_task", "nonblocking" ], "adom": "{{ADOM}}", "server_type": "ems", "connector": "{{NAME}}", "service_type": 0 }, "url": "/connector/update" } ] } - After, send the request.
Example response:  - In FortiManager -> Task Monitor, a new task is created with the description 'import from connector'.The task ID is in the output of step #7.
 Related documents: FortiClient EMS Connector Technical Tip: Using FortiManager API Fortinet Development Network (FNDN) - FortiManager |