12-05-2025 02:05 AM - edited 12-05-2025 08:23 AM
Hi All,
While I am trying to configure Device Global CLI credentials in DNAC through API then getting error;
I am doing this task in cisco Sandbox.
Solved! Go to Solution.
12-05-2025 05:27 AM
Looking at your error, this would suggest you have an incorrect JSON payload format or missing required parameters in your API request body. I am looking at the docs and see an example of a PUT request here https://developer.cisco.com/docs/dna-center/2-3-7-4/update-cli-credentials/ use this if you are trying to update, if you are adding from new...https://developer.cisco.com/docs/dna-center/2-3-7-4/create-cli-credentials/
Check your payload, aside from the docs see https://developer.cisco.com/docs/dna-center/2-3-7-4/credentials/#code
[
{
"comments": "CLI Credentials for the guide - initial",
"description": "GUIDE_CLI_CREDS_INITIAL",
"enablePassword": "Cisco123!",
"password": "Cisco123!",
"username": "dnac_user_1"
}
]
You can try adding the [] brackets, to make this an array.
12-05-2025 05:27 AM
Looking at your error, this would suggest you have an incorrect JSON payload format or missing required parameters in your API request body. I am looking at the docs and see an example of a PUT request here https://developer.cisco.com/docs/dna-center/2-3-7-4/update-cli-credentials/ use this if you are trying to update, if you are adding from new...https://developer.cisco.com/docs/dna-center/2-3-7-4/create-cli-credentials/
Check your payload, aside from the docs see https://developer.cisco.com/docs/dna-center/2-3-7-4/credentials/#code
[
{
"comments": "CLI Credentials for the guide - initial",
"description": "GUIDE_CLI_CREDS_INITIAL",
"enablePassword": "Cisco123!",
"password": "Cisco123!",
"username": "dnac_user_1"
}
]
You can try adding the [] brackets, to make this an array.
12-05-2025 09:26 AM
Thanks bigevilbeard now its working
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide