300-435 Question 232
Single answerYou are troubleshooting a Cisco DNA Center automation process that failed while deploying a network configuration using the Intent APIs. Upon inspecting the API response, you notice a '400 Bad Request' error with the message 'Invalid payload structure'. What is the most likely cause of this issue?
- A
The API request was missing mandatory headers such as 'Content-Type'.
- B
The API token used for authentication has expired.
- C
The JSON payload structure does not match the schema expected by the API.
- D
The device targeted by the API is not reachable from Cisco DNA Center.
Show answer and explanation
Correct answer: C
Explanation
A '400 Bad Request' error with the message 'Invalid payload structure' is a clear indication that the JSON payload provided in the API request does not adhere to the structure expected by the API endpoint. This is different from issues related to headers, authentication, or connectivity. To resolve this, the payload should be reviewed and modified to match the schema requirements outlined in the API documentation.
- A. Incorrect.
While missing headers like 'Content-Type' could cause an API failure, a '400 Bad Request' with 'Invalid payload structure' indicates an issue with the payload itself, not headers.
- B. Incorrect.
An expired API token would typically result in a '401 Unauthorized' error, not a '400 Bad Request'.
- C. Correct.
A '400 Bad Request' error with the message 'Invalid payload structure' specifically indicates that the JSON payload sent in the API request does not conform to the schema required by the API.
- D. Incorrect.
If the device was unreachable, you would likely see a different error indicating a failure to communicate with the device rather than a '400 Bad Request'.