cisco-en-programmability / dnacentersdk

Cisco DNA Center Python SDK
https://dnacentersdk.readthedocs.io/en/latest/
MIT License
70 stars 31 forks source link

Configuration template import template - check_type error #142

Closed MUTHU-RAKESH-27 closed 1 month ago

MUTHU-RAKESH-27 commented 7 months ago

Prerequisites

Describe the bug I was running the Ansible module for the cisco.dnac.configuration_template_import_template, which in turn calls the SDK, raises an exception that the sdk check_type expects list but while calling the API it throws an error( expecting dict instead of list). Refer screenshots.

Expected behavior According to DNACenter's developer toolkit, the request body for /dna/intent/api/v1/template-programmer/project/name/${projectName}/template/importtemplates (POST) has to be a dict but the SDK expects a list. (further details in screeshots).

Screenshots

API Structure - Import Template SDK - Import Template

Environment (please complete the following information):

Additional context Add any other context about the problem here.

fmunozmiranda commented 6 months ago

Request body updated.

Please verify it and update us.

bvargasre commented 1 month ago

I am closing this issue due to inactivity.