meta: name: Create Custom Section Missing Required Fields type: http seq: 3 http: method: POST url: '{{base_url}}/api/collections' auth: inherit body: type: json data: "{\n \"library_id\": \"{{library_id}}\",\n \"icon\": \"\U0001F4DA\"\n}" runtime: scripts: - type: after-response code: "function onResponse(res) {\ntest(\"status must be 400 with missing name\", function() {\n expect(res.status).to.eql(400);\n});\n\ntest(\"response contains error message\", function() {\n expect(res.body.error).to.exist;\n });\n}" docs: 'Test error handling when creating a collection without required fields. **Expected Response**: 400 Bad Request with error message.'