UiPath-ADAv1 API-Based Automation Practice Question
A developer is building a UiPath automation that calls a REST API to create a new support ticket. The API documentation states that the request body must be sent as JSON with the header Content-Type: application/json. The developer uses the HTTP Request activity, sets the Method property to POST, and places the serialized JSON string in the Body property. However, the API returns a 415 Unsupported Media Type error. Which property should the developer configure to resolve this error?
⚠ Common exam trap
Watch out — candidates often confuse the Accept header, which specifies desired response formats, with the Content-Type header, which specifies the request body's format.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Set the BodyFormat property to application/json.
The 415 Unsupported Media Type status code means the server rejected the request because the payload's media type is not supported. In UiPath's HTTP Request activity, the BodyFormat property determines the Content-Type header sent with the request. Setting BodyFormat to application/json ensures the server recognizes the JSON payload and processes the ticket creation correctly.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add a new header with the name Accept and the value application/json.
Why it's wrong here
The Accept header tells the server what response format the client prefers, not what format the request body is in. Adding Accept: application/json would not fix a 415 error, which is caused by the server rejecting the request body's media type. The correct fix is to set the Content-Type header, typically via the BodyFormat property.
- ✗
Change the Method property to PUT.
Why it's wrong here
Changing the HTTP method to PUT would alter the operation's semantics and likely cause a different error or unintended behavior. The 415 error is unrelated to the method; it specifically indicates that the server cannot process the request body's media type. The developer must correct the Content-Type header, not the method.
- ✗
Set the Body property to a file path containing the JSON payload.
Why it's wrong here
The Body property expects the actual content to send, not a file path. Providing a file path would send the path string as the body, which is incorrect and would still result in a 415 error because the Content-Type header remains unset. The BodyFormat property must be set to application/json to specify the correct media type.
- ✓
Set the BodyFormat property to application/json.
Why this is correct
The 415 error indicates the server rejected the request because the Content-Type header was missing or incorrect. In the HTTP Request activity, the BodyFormat property controls the Content-Type header. Setting it to application/json ensures the server receives the correct media type, allowing it to parse the JSON body and process the ticket creation request successfully.
Visual reference
About these practice questions
This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.