Bird
0
0

What is wrong with this batch create response? {"created_ids": [201, 202], "errors": "None"}

medium📝 Debug Q7 of 15
Rest API - Batch and Bulk Operations
What is wrong with this batch create response? {"created_ids": [201, 202], "errors": "None"}
ACreated IDs should be strings, not numbers.
BErrors should be an array, not a string.
CResponse must not include created IDs.
DErrors key should be omitted if no errors.
Step-by-Step Solution
Solution:
  1. Step 1: Check errors field type

    Errors should be an array to list multiple errors or empty if none.
  2. Step 2: Validate other fields

    Created IDs as numbers are fine; including created IDs is expected; errors key can be present but must be correct type.
  3. Final Answer:

    Errors should be an array, not a string. -> Option B
  4. Quick Check:

    Errors field type must be array [OK]
Quick Trick: Errors field must be an array, even if empty [OK]
Common Mistakes:
MISTAKES
  • Using string instead of array for errors
  • Omitting created IDs in response
  • Returning errors as null or other types

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes