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 jsonBody: "{\n \"library_id\": \"{{library_id}}\",\n \"icon\": \"📚\"\ \n}" runtime: scripts: - type: tests code: "test(\"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\ \ });" docs: |- Test error handling when creating a collection without required fields. **Expected Response**: 400 Bad Request with error message.