{"info":{"_postman_id":"5f09ef50-c2de-4a98-be80-e9f92b28f405","name":"Content Service","description":"This is the NPR Content Service.\n","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"/docs","item":[{"name":"{documentId} + Query Params","item":[{"name":"Query Date Params","item":[{"name":"First Publish Date","id":"2c7bdc8e-7ef1-4342-9804-9fee1e6a4ab8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?firstpublishdate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"firstpublishdate","value":"{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Date of first publication (CMS thing_date)"},"response":[],"_postman_id":"2c7bdc8e-7ef1-4342-9804-9fee1e6a4ab8"},{"name":"Last Publish Date","id":"5d15e073-6df3-44db-8c8f-29bde2d71956","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?lastpublishdate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"lastpublishdate","value":"{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Date of most recent publication (CMS thing_publish_date)"},"response":[],"_postman_id":"5d15e073-6df3-44db-8c8f-29bde2d71956"},{"name":"Show Date","id":"a1b1ec91-1d44-48a0-82f7-edd90b0cc9ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?showdate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"showdate","value":"{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Date of show broadcast (CMS program_episode.pe_show_date)"},"response":[],"_postman_id":"a1b1ec91-1d44-48a0-82f7-edd90b0cc9ea"},{"name":"Created Date","id":"0b4ad883-606c-4ee9-bbe9-0b6a9fa375cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?createddate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"createddate","value":"{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Date that this document was first published to the Content Service"},"response":[],"_postman_id":"0b4ad883-606c-4ee9-bbe9-0b6a9fa375cf"},{"name":"Modified Date","id":"d024978a-1d25-4cd9-8107-78b4166ce630","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?modifieddate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"modifieddate","value":"{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Date that this document was last updated/republished to the Content Service"},"response":[],"_postman_id":"d024978a-1d25-4cd9-8107-78b4166ce630"},{"name":"Date Range","id":"5505b419-508f-471e-9c25-c94e1428b9e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?modifieddate={{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"modifieddate","value":"{{date}}"}],"variable":[{"id":"cb839373-4624-400e-9d7c-53b3f92c0859","key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"This query will return docs with dates that fall within the defined date range. If no timestamp is included for the dates, the search range will default to YYYY-MM-DDT00:00:00Z...YYYY-MM-DDT23:59:59Z"},"response":[],"_postman_id":"5505b419-508f-471e-9c25-c94e1428b9e5"},{"name":"Before Publish Date","id":"a55d6ab7-1862-4d26-a49c-fde09fc6881a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?showdate=...{{date}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"showdate","value":"...{{date}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"This query returns all docs published prior to the provided date. If no timestamp is provided, the time will default to T23:59:59Z"},"response":[],"_postman_id":"a55d6ab7-1862-4d26-a49c-fde09fc6881a"},{"name":"After Publish Date","id":"0ca91a7b-f840-4c91-812a-3704f0cd6200","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?showdate={{date}}...","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"showdate","value":"{{date}}..."}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"This query returns all docs published after the provided date. If no timestamp is provided, the time will default to T00:00:00Z"},"response":[],"_postman_id":"0ca91a7b-f840-4c91-812a-3704f0cd6200"}],"id":"6645d698-4ea7-4bc2-9d6e-a91deb158eaa","description":"Dates should be formatted as YYYY-MM-DD. A timestamp and timezone can be added in the following format: T00:00:00Z. If no time is provided the server will use a default (see notes below for specifics). Timezone will default to GMT / Zulu.","event":[{"listen":"prerequest","script":{"id":"9c87bc87-7805-431b-bd40-55ff1a75097d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5729badb-6f0f-4148-8f00-c025ff1e2553","type":"text/javascript","exec":[""]}}],"_postman_id":"6645d698-4ea7-4bc2-9d6e-a91deb158eaa"},{"name":"Advanced Query Params","item":[{"name":"Boolean OR","id":"a373b261-c3cd-458e-9da1-f5f04b75814d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?profile=audio;video&firstpublishdate=2016-01-01...","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"profile","value":"audio;video"},{"key":"firstpublishdate","value":"2016-01-01..."}],"variable":[{"key":"documentId","value":"","type":"string"}]},"description":"Returns all documents that have a profile of audio OR video and that were first published on or after January 1 2016.\n\nUse a semicolon ; to seperate the values."},"response":[],"_postman_id":"a373b261-c3cd-458e-9da1-f5f04b75814d"},{"name":"Boolean AND","id":"134bcf67-ce10-4f83-96ff-8a5cfeff557f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentIdprofile=audio,video&firstpublishdate=2016-01-01...","host":["{{hostname}}"],"path":["docs",":documentIdprofile=audio,video&firstpublishdate=2016-01-01..."],"variable":[{"key":"documentIdprofile","value":"","type":"string"}]},"description":"Returns all documents that have a profile of audio AND video and that were first published on or after January 1, 2016.\n\nUse a comma , to seperate the values."},"response":[],"_postman_id":"134bcf67-ce10-4f83-96ff-8a5cfeff557f"},{"name":"Boolean NOT","id":"8e7c79dd-1cc8-4d7a-b4db-679ce8456d00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?profile=audio!video&firstpublishdate=2016-01-01...","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"profile","value":"audio!video"},{"key":"firstpublishdate","value":"2016-01-01..."}],"variable":[{"key":"documentId","value":"","type":"string"}]},"description":"Returns all documents that have a profile of audio but does NOT have a profile of video (and that were first published on or after January 1 2016\n\nUse an exclamation point ! to seperate the values."},"response":[],"_postman_id":"8e7c79dd-1cc8-4d7a-b4db-679ce8456d00"}],"id":"838244cd-652b-4b32-b883-59d70a84bb7c","description":"For when you've mastered the basics.","_postman_id":"838244cd-652b-4b32-b883-59d70a84bb7c"},{"name":"Collection ID","id":"6c910df0-ef9e-4c4c-8a03-fe50997b1998","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?collection={{collectionId}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"collection","value":"{{collectionId}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Returns a document of search results with an array of item links to the uncurated documents that contain collection links to the document whose GUID matches the value passed in with the request."},"response":[],"_postman_id":"6c910df0-ef9e-4c4c-8a03-fe50997b1998"},{"name":"Collection External ID","id":"5e00cee4-3e7f-413e-9700-6bb46af0fffc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?collectionexternalid=","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"collectionexternalid","value":""}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"A GET request to the /docs endpoint that passes in the collection's Seamus ID as a query param will return a document of search results with an array of unordered (uncurated) item links to documents containing collection links to the document whose external ID matches the Seamus ID that was passed in with the request."},"response":[],"_postman_id":"5e00cee4-3e7f-413e-9700-6bb46af0fffc"},{"name":"External ID","id":"e488478d-c680-4d2e-aea3-5a02074959d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?externalid=","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"externalid","value":"","type":"text"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"A GET request to the /docs endpoint that passes in the Seamus ID of the desired collection as a query parameter will return a document of search results whose \"_links.item[]\" array will include a link to the doc whose external ID value matches the passed in Seamus ID. The linked document will also be prefetched and made available within the \"_embedded\" object."},"response":[],"_postman_id":"e488478d-c680-4d2e-aea3-5a02074959d7"},{"name":"External Type","id":"81cbc598-40f3-40c1-be26-25ce2890f79d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId?externalType={{externalTypeKey}}","host":["{{hostname}}"],"path":["docs",":documentId"],"query":[{"key":"externalType","value":"{{externalTypeKey}}"}],"variable":[{"key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Returns story documents with this value listed under its externalType key"},"response":[],"_postman_id":"81cbc598-40f3-40c1-be26-25ce2890f79d"}],"id":"52bcc2b0-a385-4b27-990e-662c3f508d12","_postman_id":"52bcc2b0-a385-4b27-990e-662c3f508d12"},{"name":"/{documentId}","id":"b2763fd8-18e0-4c9e-b63b-e9fa9eb7a40d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/docs/:documentId","host":["{{hostname}}"],"path":["docs",":documentId"],"variable":[{"id":"6f65cdc4-fce7-4e72-9e3b-3d91cc9c58ab","key":"documentId","value":"{{documentId}}","type":"string"}]},"description":"Retrieve a single document by ID"},"response":[],"_postman_id":"b2763fd8-18e0-4c9e-b63b-e9fa9eb7a40d"},{"name":"/","id":"d5acdd43-31ab-45c5-9d2e-8a1e64fb5393","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{content-service-bearer-token}}","type":"text"}],"url":"{{hostname}}/docs","description":"Search for documents based on various parameters"},"response":[],"_postman_id":"d5acdd43-31ab-45c5-9d2e-8a1e64fb5393"}],"id":"5c5522ca-8365-45f3-a54d-8e617bc086d2","description":"Endpoints for working with content documents","_postman_id":"5c5522ca-8365-45f3-a54d-8e617bc086d2"},{"name":"/collections","item":[{"name":"/{collectionId} + Query Params","item":[{"name":" External ID","id":"f84ea8cf-8120-4d1d-bf99-5dc363b818ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/collections/:documentId","host":["{{hostname}}"],"path":["collections",":documentId"],"variable":[{"id":"edc2d355-a7f8-45cf-89f2-b31cd5bc9623","key":"documentId","value":"{{collectionId}}","type":"string"}]}},"response":[],"_postman_id":"f84ea8cf-8120-4d1d-bf99-5dc363b818ce"}],"id":"3b144c20-d5c5-433a-8e7e-f53913b7db7a","event":[{"listen":"prerequest","script":{"id":"7f5703af-af86-4b27-94b8-368ddb3aeb90","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a7df9189-7a06-448e-87e3-36fbc64d9a15","type":"text/javascript","exec":[""]}}],"_postman_id":"3b144c20-d5c5-433a-8e7e-f53913b7db7a"},{"name":"/{collectionId}","id":"19969a3c-9c01-4777-b45d-c00830fd3268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{hostname}}/collections/:documentId","host":["{{hostname}}"],"path":["collections",":documentId"],"variable":[{"id":"1c964fe8-7584-484e-b6bb-156aca3a94a3","key":"documentId","value":"{{collectionId}}","type":"string"}]},"description":"GET requests to the /collections endpoint with a collection document's GUID will return the document that represents this collection, including the full set of documents assigned to this collection (both the curated \"item\" links belonging to the collection with this GUID and the uncurated documents that link to this document within their \"collection\" links array.). The curated documents (those included under the linked-to doc's \"item\" links) will appear first in the list, in their curated order, followed by the uncurated documents, listed in whatever order they are retrieved (subject to any searchsort order params passed in with the query). A request to GET /collections/{collectionId} should respond with 200 status code for any known document guid. The Minimum response will include the document's state/metadata (e.g. id, title, etc) as well as any additional links and embedded that are not collection-oriented (e.g. not item or collection). If no documents belong to this collection, the \"_links.item[]\" array will be empty."},"response":[],"_postman_id":"19969a3c-9c01-4777-b45d-c00830fd3268"}],"id":"2c9fad79-abe7-41e1-b4bf-46c6cd633f12","description":"A collection in the Content Service is analogous to an aggregation in the Story API.\n\nA \"collection\" link indicates a loosely coupled relationship; the secondary link type (found under \"rels\") gives information about the linked-to document and what relationship it holds to the linking document. For example, a linked document that is being pointed to with the secondary link type \"npr:episode\" represents an episode belonging to the current linking document.\n\nA document may be linked to multiple collections, and a document may also be linked to a collection without the collection's knowledge. By contrast, \"item\" links are a way to model an ordered relationship; these item documents are often associated assets such as images or audio files that are tightly coupled to this linking document, or in the case of the document that represents the NPR.org homepage, its _links.item array will contain ordered links to the editor assigned story documents intended to be displayed on the homepage of NPR.org.","event":[{"listen":"prerequest","script":{"id":"67edd0dc-8f64-4c1c-8afd-d2581e46849b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6259fb62-9e79-4542-a44c-16bac4a9df77","type":"text/javascript","exec":[""]}}],"_postman_id":"2c9fad79-abe7-41e1-b4bf-46c6cd633f12"},{"name":"/groups","item":[{"name":"/{groupId}","id":"5cee703d-9209-408f-bf69-bd90aedf0a62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{hostname}}/groups/{{groupId}}","description":"Look at a specific group document by ID"},"response":[],"_postman_id":"5cee703d-9209-408f-bf69-bd90aedf0a62"}],"id":"ebe9046a-e721-4f42-a0de-1c997f55ba36","_postman_id":"ebe9046a-e721-4f42-a0de-1c997f55ba36"},{"name":"/profiles","item":[{"name":"/{profileId}","id":"ff906cc8-55c5-409c-b203-2fa77188dca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{hostname}}/profiles/{{profileId}}","description":"Look at a specific profile document by ID"},"response":[],"_postman_id":"ff906cc8-55c5-409c-b203-2fa77188dca4"}],"id":"12be2da1-37fd-4a4e-849f-fccf1398d0d1","_postman_id":"12be2da1-37fd-4a4e-849f-fccf1398d0d1"},{"name":"/","id":"6add828c-1a8a-488c-ab0d-77a19af0cf0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{hostname}}","description":"Content Service home document, which provides a hypermedia manifest of just about all of the operations you can do with the Content Service."},"response":[],"_postman_id":"6add828c-1a8a-488c-ab0d-77a19af0cf0a"}],"auth":{"type":"bearer","bearer":{"token":"{{content-service-bearer-token}}"}},"event":[{"listen":"prerequest","script":{"id":"6f64acf5-6994-45a8-8369-741b49b8e5c1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"11673d56-4a64-40cf-810a-4f0ca3414636","type":"text/javascript","exec":[""]}}],"variable":[{"key":"hostname","value":"Ask Station Relations for the URL"},{"key":"documentId","value":""},{"key":"groupId","value":""},{"key":"profileId","value":""}]}