{"info":{"_postman_id":"fac56f00-8493-4298-b4e6-b6a5faaa9318","name":"Postman Library API v2 docs","description":"<html><head></head><body><p>Manage books in the Postman library using this API. This API is designed to teach the basics of using APIs and Postman!</p>\n<p>Note that all non-permanent collection books are automatically deleted on a three-day rolling basis</p>\n<h2 id=\"permanent-collection-books\">Permanent collection books</h2>\n<p>Some books are part of the <strong>permanent collection</strong> and cannot be edited or deleted. These books have the property <code>isPermanentCollection: true</code></p>\n<h2 id=\"authorizing-requests\">Authorizing requests</h2>\n<p>This API requires Authorization to make POST, PATCH, and DELETE requests.</p>\n<p>You will need to set the API key in the collection variables to <code>postmanrulz</code> in order to make those requests.</p>\n<p>In the real world you would generate an API Key with an API's developer portal service. This is just a training API so we have provided an API key for you!</p>\n<p>Learn more about authorizing API requests in Postman <a href=\"https://learning.postman.com/docs/sending-requests/authorization/\">here</a>.</p>\n<h2 id=\"this-is-a-public-api\">This is a public API!</h2>\n<p>Any book you add or update will be publicly visible to all users of this API. Please be respectful and follow these rules:</p>\n<ul>\n<li><p>Only modify books you have added yourself</p>\n</li>\n<li><p>Understand that books in this API may be deleted at any time</p>\n</li>\n</ul>\n<h2 id=\"whats-different-from-the-old-postman-library-api\">What's different from the old <a href=\"https://www.postman.com/postman/workspace/postman-classroom-program/collection/15567703-da68bf1c-1aae-4f14-a79b-95926a816366?ctx=documentation\">Postman Library API</a>?</h2>\n<p>The old Library API was used in the <a href=\"https://www.postman.com/postman/workspace/postman-classroom-program/overview\">Postman Classroom Program</a> modules. We made some improvements for v2:</p>\n<ul>\n<li><p><strong>API Key Auth for POST/PATCH/DELETE requests</strong>. Practice authorization!</p>\n</li>\n<li><p><strong>POST/PATCH requests now return book info such as</strong> <strong><code>id</code></strong>. This enables possibilities with scripting based on the response.</p>\n</li>\n<li><p><strong>Dedicated public workspace and docs</strong>. You can view this API's schema from the \"API\" tab in the public workspace. Easily find and fork this API or docs by searching \"Postman Library API v2\"</p>\n</li>\n<li><p><strong>Automatic cleanup</strong>. Non-permanent collection books are automatically deleted on a rolling three-day basis.</p>\n</li>\n<li><p><strong>Profanity filters</strong>. Cleans up book titles and author names</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15567703","collectionId":"fac56f00-8493-4298-b4e6-b6a5faaa9318","publishedId":"UVyxRtng","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-20T13:24:20.000Z"},"item":[{"name":"books","item":[{"name":"{id}","item":[{"name":"Get a book by id","id":"b042476f-a942-497d-af90-b014f5c4a4ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://library-api.postmanlabs.com/books/:id","urlObject":{"path":["books",":id"],"host":["https://library-api.postmanlabs.com"],"query":[],"variable":[{"id":"b8b341e6-5d54-42ed-b006-67ad219deca7","description":{"content":"<p>(Required) the id of a book</p>\n","type":"text/plain"},"type":"any","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","key":"id"}]}},"response":[{"id":"bded5c6a-0173-4b2f-b532-dce74f37cb4f","name":"Found book","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n        \"id\": \"29cd820f-82f9-4b45-a7f4-0924111b5b89\",\n        \"title\": \"Ficciones\",\n        \"author\": \"Jorge Luis Borges\",\n        \"genre\": \"fiction\",\n        \"yearPublished\": 1944,\n        \"checkedOut\": false,\n        \"isPermanentCollection\": true,\n        \"createdAt\": \"2022-03-04T22:10:24.526Z\"\n    }"},{"id":"ea08218e-8656-4852-b06d-3765ef70eca3","name":"Book not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b80","description":"(Required) the id of a book"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Book with id '29cd820f-82f9-4b45-a7f4-0924111b5b80 not found\"\n}"},{"id":"0090e49f-ad43-4f38-b495-6d4d70b13ec6","name":"Unexpected error","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"fugiat amet in aliquip Excepteur","description":"(Required) the id of a book"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"something\"\n}"}],"_postman_id":"b042476f-a942-497d-af90-b014f5c4a4ce"},{"name":"Update a book by id","id":"1c3ce860-e1ee-4957-b517-2e3068021abc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":""}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"checkedOut\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books/:id","urlObject":{"path":["books",":id"],"host":["https://library-api.postmanlabs.com"],"query":[],"variable":[{"id":"7dd255c5-a17c-46f4-be5e-4aa6cf50f195","description":{"content":"<p>(Required) the id of a book</p>\n","type":"text/plain"},"type":"any","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","key":"id"}]}},"response":[{"id":"4647a9a6-4680-4d6d-8bb2-b361edff6aab","name":"Update successful","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n    \"checkedOut\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n        \"id\": \"29cd820f-82f9-4b45-a7f4-0924111b5b89\",\n        \"title\": \"Ficciones\",\n        \"author\": \"Jorge Luis Borges\",\n        \"genre\": \"fiction\",\n        \"yearPublished\": 1944,\n        \"checkedOut\": true,\n        \"isPermanentCollection\": true,\n        \"createdAt\": \"2022-03-04T22:10:24.526Z\"\n    }"},{"id":"0e400942-e27c-4934-8154-a648b155d048","name":"Bad request","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n    \"checkedOut\": \"foo\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"body/checkedOut must be boolean\",\n    \"errors\": [\n        {\n            \"instancePath\": \"/checkedOut\",\n            \"schemaPath\": \"#/properties/checkedOut/type\",\n            \"keyword\": \"type\",\n            \"params\": {\n                \"type\": \"boolean\"\n            },\n            \"message\": \"must be boolean\"\n        }\n    ]\n}"},{"id":"0c5f26af-300e-4953-ba6b-58e1cd758cc6","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid or missing credentials. Make sure you add 'api-key' to the request headers with a valid value\"\n}"},{"id":"ce4a6241-d100-4782-8a1d-8f4d552742f6","name":"Forbidden","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b8a","description":"(Required) the id of a book"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You cannot modify books in the permanent collection! Book with id '29cd820f-82f9-4b45-a7f4-0924111b5b89' is in the permanent collection.\"\n}"},{"id":"e112930c-c6ff-4ec4-aa69-5d24113e4a05","name":"Book not found","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"fugiat amet in aliquip Excepteur","description":"(Required) the id of a book"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Book with id '29cd820f-82f9-4b45-a7f4-0924111b5b80' not found\"\n}"},{"id":"0ec47be9-8e66-40b7-be14-95a05e8f0a07","name":"Unexpected error","originalRequest":{"method":"PATCH","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"fugiat amet in aliquip Excepteur","description":"(Required) the id of a book"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"something\"\n}"}],"_postman_id":"1c3ce860-e1ee-4957-b517-2e3068021abc"},{"name":"Delete a book by id","id":"15d10b97-bcfd-4744-9278-c4d4bfbbc32d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":""}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"https://library-api.postmanlabs.com/books/:id","urlObject":{"path":["books",":id"],"host":["https://library-api.postmanlabs.com"],"query":[],"variable":[{"id":"04bcea2d-a692-4fc3-bff1-b12bb8d05194","description":{"content":"<p>(Required) the id of a book</p>\n","type":"text/plain"},"type":"any","value":"29f47d22-1062-479d-be58-2d8db3ecb8be","key":"id"}]}},"response":[{"id":"e780ebf8-1bf7-4c57-80fe-f96f271828fb","name":"Delete successful","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"b343096f-f47c-4c5b-8278-c0090b692029","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid or missing credentials. Make sure you add 'api-key' to the request headers with a valid value\"\n}"},{"id":"00325d4e-cfac-4725-a1d0-21f5b170c69b","name":"Forbidden","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You cannot modify books in the permanent collection! Book with id '29cd820f-82f9-4b45-a7f4-0924111b5b89' is in the permanent collection.\"\n}"},{"id":"c401e63c-bd60-4992-931c-3c56a48cf6f3","name":"Book not found","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b8e","description":"(Required) the id of a book"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Book with id '29cd820f-82f9-4b45-a7f4-0924111b5b8e' not found\"\n}"},{"id":"eab6b3fe-6310-4366-b5eb-cf1df3809573","name":"Unexpected error","originalRequest":{"method":"DELETE","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"url":{"raw":"https://library-api.postmanlabs.com/books/:id","host":["https://library-api.postmanlabs.com"],"path":["books",":id"],"variable":[{"key":"id","value":"29cd820f-82f9-4b45-a7f4-0924111b5b89","description":"(Required) the id of a book"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"something\"\n}"}],"_postman_id":"15d10b97-bcfd-4744-9278-c4d4bfbbc32d"}],"id":"3252a7bb-1af9-455c-8816-d968fbe8d4b8","_postman_id":"3252a7bb-1af9-455c-8816-d968fbe8d4b8","description":""},{"name":"Get books","id":"a2f33f71-de38-42fb-97fe-dccac7516e73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://library-api.postmanlabs.com/books","description":"<p>Get all books, or add query parameters to filter results by <code>genre</code>, <code>search</code> keyword, and/or <code>checkedOut</code> status</p>\n","urlObject":{"path":["books"],"host":["https://library-api.postmanlabs.com"],"query":[{"disabled":true,"description":{"content":"<p>a genre to filter for</p>\n","type":"text/plain"},"key":"genre","value":"fiction"},{"disabled":true,"description":{"content":"<p>a value true or false</p>\n","type":"text/plain"},"key":"checkedOut","value":"false"},{"disabled":true,"description":{"content":"<p>a search term to match against author or title</p>\n","type":"text/plain"},"key":"search","value":"borges"}],"variable":[]}},"response":[{"id":"1bb4951e-2122-456d-8100-532a68556fde","name":"A list of all books","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://library-api.postmanlabs.com/books?genre=fiction&checkedOut=false","host":["https://library-api.postmanlabs.com"],"path":["books"],"query":[{"key":"genre","value":"fiction"},{"key":"checkedOut","value":"false"},{"key":"search","value":"borges","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n   {\n        \"id\": \"50b1a8e9-78f0-4a80-b350-8fdf8fb1b8b8\",\n        \"title\": \"A Thousand Splendid Suns\",\n        \"author\": \"Khaled Hosseini\",\n        \"genre\": \"fiction\",\n        \"yearPublished\": 2007,\n        \"checkedOut\": false,\n        \"isPermanentCollection\": true,\n        \"createdAt\": \"2022-03-04T22:10:24.526Z\"\n    },\n    {\n        \"id\": \"29cd820f-82f9-4b45-a7f4-0924111b5b89\",\n        \"title\": \"Ficciones\",\n        \"author\": \"Jorge Luis Borges\",\n        \"genre\": \"fiction\",\n        \"yearPublished\": 1944,\n        \"checkedOut\": false,\n        \"isPermanentCollection\": true,\n        \"createdAt\": \"2022-03-04T22:10:24.526Z\"\n    }\n]"},{"id":"30eec829-9606-48b6-9944-3cb9657b2ec4","name":"Unexpected error","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://library-api.postmanlabs.com/books?genre=fugiat amet in aliquip Excepteur&checkedOut=fugiat amet in aliquip Excepteur&search=fugiat amet in aliquip Excepteur","host":["https://library-api.postmanlabs.com"],"path":["books"],"query":[{"key":"genre","value":"fugiat amet in aliquip Excepteur"},{"key":"checkedOut","value":"fugiat amet in aliquip Excepteur"},{"key":"search","value":"fugiat amet in aliquip Excepteur"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"something\"\n}"}],"_postman_id":"a2f33f71-de38-42fb-97fe-dccac7516e73"},{"name":"Add a book","id":"e0dbc14c-371d-4813-97c3-281de36fad0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api-key"},{"key":"value","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Four Agreements\",\n  \"author\": \"don Miguel Ruiz\",\n  \"genre\": \"self-help\",\n  \"yearPublished\": 1997\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books","description":"<p>Note: User-added books are automatically deleted about 3 days after being added.</p>\n","urlObject":{"path":["books"],"host":["https://library-api.postmanlabs.com"],"query":[],"variable":[]}},"response":[{"id":"7d1b5576-2db5-4b40-abaf-62d1925898f2","name":"Book created successfully","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Four Agreements\",\n  \"author\": \"don Miguel Ruiz\",\n  \"genre\": \"self-help\",\n  \"yearPublished\": 1997\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"6d63c5b9-74ed-40ff-9415-81589189f690\",\n    \"title\": \"The Four Agreements\",\n    \"author\": \"don Miguel Ruiz\",\n    \"genre\": \"self-help\",\n    \"yearPublished\": 1997,\n    \"checkedOut\": false,\n    \"isPermanentCollection\": false,\n    \"createdAt\": \"2022-03-17T16:09:41.950Z\"\n}"},{"id":"c853a80a-571d-4f18-9cef-fe8451de5dc6","name":"Bad Request","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Four Agreements\",\n  \"author\": \"don Miguel Ruiz\",\n  \"yearPublished\": \"foo\"\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"body must have required property 'genre', body/yearPublished must be integer\",\n    \"errors\": [\n        {\n            \"instancePath\": \"\",\n            \"schemaPath\": \"#/required\",\n            \"keyword\": \"required\",\n            \"params\": {\n                \"missingProperty\": \"genre\"\n            },\n            \"message\": \"must have required property 'genre'\"\n        },\n        {\n            \"instancePath\": \"/yearPublished\",\n            \"schemaPath\": \"#/properties/yearPublished/type\",\n            \"keyword\": \"type\",\n            \"params\": {\n                \"type\": \"integer\"\n            },\n            \"message\": \"must be integer\"\n        }\n    ]\n}"},{"id":"f44f017f-32e0-4a3e-a846-4897a9ff866a","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Four Agreements\",\n  \"author\": \"don Miguel Ruiz\",\n  \"genre\": \"self-help\",\n  \"yearPublished\": 1997\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid or missing credentials. Make sure you add 'api-key' to the request headers with a valid value\"\n}"},{"id":"6908b808-f7c4-43c6-ba88-5c99b3437fc3","name":"Unexpected error","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: apikey","key":"api-key","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"title\": \"The Four Agreements\",\n  \"author\": \"don Miguel Ruiz\",\n  \"genre\": \"self-help\",\n  \"yearPublished\": 1997\n}","options":{"raw":{"language":"json"}}},"url":"https://library-api.postmanlabs.com/books"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"message\": \"something\"\n}"}],"_postman_id":"e0dbc14c-371d-4813-97c3-281de36fad0c"}],"id":"3d4c447b-5369-413d-8ac9-b31426a846ac","_postman_id":"3d4c447b-5369-413d-8ac9-b31426a846ac","description":""}],"event":[{"listen":"prerequest","script":{"id":"81ccfda4-5bae-4aaa-a120-3fb1fe3301ae","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ade23026-470b-4bfc-8a3b-d2ebede3af58","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://library-api.postmanlabs.com","type":"string"},{"key":"apiKey","value":"","type":"string"}]}