{"id":17680,"date":"2020-12-28T04:31:02","date_gmt":"2020-12-28T12:31:02","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17680"},"modified":"2023-12-01T04:06:25","modified_gmt":"2023-12-01T12:06:25","slug":"python-rename-file","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-rename-file\/","title":{"rendered":"Python Rename File: A Step-By-Step Guide"},"content":{"rendered":"\n<p><em>The Python os.rename() method changes the name of a file. os.rename() accepts two arguments: the path of the old file and the path of the new file. The new file path should end in a different file name.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>When you\u2019re working with files in Python, you may decide that you want to rename a particular file. For instance, if you have a file called <em>raw_data.csv<\/em>, you may want to rename it <em>old_data.csv<\/em> when your program runs.<\/p>\n\n\n\n<p>That\u2019s where the <em>os.rename()<\/em> method comes in. The <em>os.rename()<\/em> method allows you to rename an existing file in Python.<\/p>\n\n\n\n<p>This tutorial will discuss, with examples, the basics of the <em>os.rename()<\/em> method, and how you can use it to rename files in Python.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Rename File<\/h2>\n\n\n\n<p>The Python <em>os.rename()<\/em> method renames a file. The file you are renaming should already exist. You need to specify the path of the file you are renaming as well as the new path for the file. The new path should have a different name to the file you are renaming.<\/p>\n\n\n\n<p>The syntax for <em>os.rename()<\/em> is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>os.rename(file, destination)<\/pre><\/div>\n\n\n\n<p>As you can see, <em>rename()<\/em> accepts two parameters. These are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>file: The path of the file you want to rename, followed by the file name (e.g. \u201c\/home\/career_karma\/file.txt\u201d).<\/li><li>destination: The path of the file, followed by the new file name (e.g. \u201c\/home\/career_karma\/file_new.txt\u201d).<\/li><\/ul>\n\n\n\n<p>The os.rename() method is part of the Python os library. This library provides functions that relate to your computer&#8217;s operating system, such as creating and deleting files.<\/p>\n\n\n\n<p>To work with the os.rename() method, we need to import the os library:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import os<\/pre><\/div>\n\n\n\n<p>Let\u2019s walk through an example to show the os.rename() method in action.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Rename File Example<\/h2>\n\n\n\n<p>Suppose we want to rename the file <em>raw_data.csv<\/em> to <em>old_data.csv<\/em>. The file <em>raw_data.csv<\/em> is stored in the directory <em>\/home\/career_karma<\/em>. We could change the name of our file using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import os\n\nold_file_name = &quot;\/home\/career_karma\/raw_data.csv&quot;\nnew_file_name = &quot;\/home\/career_karma\/old_data.csv&quot;\n\nos.rename(old_file_name, new_file_name)\n\nprint(&quot;File renamed!&quot;)<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>File renamed!<\/em> Our code has also renamed our file.<\/p>\n\n\n\n<p>First, we import the <em>os<\/em> module. This allows us to access the <em>os.rename()<\/em> method.<\/p>\n\n\n\n<p>Then, we declare two <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variables<\/a>. The first variable (\u201cold_file_name\u201d) contains the path of the file we want to rename, and the second variable (\u201cnew_file_name\u201d) contains the new path name for the file.<\/p>\n\n\n\n<p>Because we want to change our file name to <em>old_data.csv<\/em>, our <em>new_file_name<\/em> variable ends in <em>old_data.csv<\/em>, instead of <em>raw_data.csv<\/em>.<\/p>\n\n\n\n<p>Next, we use <em>os.rename()<\/em> to change the name of our file. Then, our code prints &#8220;<em>File renamed!&#8221;<\/em> to the console, so we know our program has executed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Rename Multiple Files<\/h2>\n\n\n\n<p>Now, suppose we want to rename multiple files. We can also accomplish this goal using the <em>os.rename()<\/em> method.<\/p>\n\n\n\n<p>Let\u2019s say that we want to rename every file in the <em>\/home\/career_karma<\/em> directory and add <em>old_<\/em> to the start of each file name. Right now, this directory contains the following files:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>data.csv<\/li><li>raw_data.csv<\/li><li>program.py<\/li><\/ul>\n\n\n\n<p>We could use the following program to add <em>old_<\/em> to the start of each filename:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import os\n\nfor file in os.listdir(&quot;\/home\/career_karma&quot;):\n\tos.rename(file, f&quot;\/home\/career_karma\/old_{file}&quot;)<\/pre><\/div>\n\n\n\n<p>Our code renames our files. Here is a list of the new files in our directory:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>old_data.csv<\/li><li>old_raw_data.csv<\/li><li>old_program.py<\/li><\/ul>\n\n\n\n<p>Let\u2019s break down how our code works. First, we import <em>os<\/em> into our code, so that we can work with the <em>os.rename()<\/em> and <a href=\"https:\/\/careerkarma.com\/blog\/python-list-files-in-directory\/\">os.listdir()<\/a> methods. Then, we create a for loop that iterates through a list of all files in the <em>\/home\/career_karma<\/em> folder. This list is generated using the <em>os.listdir()<\/em> method.<\/p>\n\n\n\n<p>Then, our code uses <em>os.rename()<\/em> to rename each file in the <em>\/home\/career_karma<\/em> folder. We use a <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">Python f string<\/a> to replace each file name with <em>\/home\/career_karma\/old_{FILE_NAME}<\/em>, where <em>FILE_NAME<\/em> is the name of our old file.<\/p>\n\n\n\n<p>As you can see, <em>old_<\/em> has been added to the start of every file in the <em>\/home\/career_karma<\/em> folder.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The <em>os.rename()<\/em> method allows you to rename files in Python. When used with the <em>os.listdir()<\/em> method, you can use <em>os.rename()<\/em> to rename all the files in a folder.<\/p>\n\n\n\n<p>This tutorial discussed, with examples, the basics of the <em>os<\/em> module and how to use the <em>os.rename()<\/em> method. Now you\u2019re ready to start using <em>os.rename()<\/em> to rename files like a Python professional!<\/p>\n\n\n\n<p>Do you want to learn more about coding in Python? Check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">How to Learn Python guide<\/a>. You&#8217;ll find top tips on how to learn Python as well as a list of expert-curated learning resources to help you on your journey.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python os.rename() method changes the name of a file. os.rename() accepts two arguments: the path of the old file and the path of the new file. The new file path should end in a different file name. When you\u2019re working with files in Python, you may decide that you want to rename a particular&hellip;","protected":false},"author":240,"featured_media":17683,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-17680","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python Rename File: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-rename-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Rename File: A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-rename-file\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-28T12:31:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"663\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Rename File: A Step-By-Step Guide\",\"datePublished\":\"2020-12-28T12:31:02+00:00\",\"dateModified\":\"2023-12-01T12:06:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/\"},\"wordCount\":803,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/advice-advise-advisor-business-7075-2.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/\",\"name\":\"Python Rename File: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/advice-advise-advisor-business-7075-2.jpg\",\"datePublished\":\"2020-12-28T12:31:02+00:00\",\"dateModified\":\"2023-12-01T12:06:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/advice-advise-advisor-business-7075-2.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/advice-advise-advisor-business-7075-2.jpg\",\"width\":1000,\"height\":663},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-rename-file\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Rename File: A Step-By-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Rename File: A Step-By-Step Guide | Career Karma","description":"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/python-rename-file\/","og_locale":"en_US","og_type":"article","og_title":"Python Rename File: A Step-By-Step Guide","og_description":"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().","og_url":"https:\/\/careerkarma.com\/blog\/python-rename-file\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-28T12:31:02+00:00","article_modified_time":"2023-12-01T12:06:25+00:00","og_image":[{"width":1000,"height":663,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Rename File: A Step-By-Step Guide","datePublished":"2020-12-28T12:31:02+00:00","dateModified":"2023-12-01T12:06:25+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/"},"wordCount":803,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-rename-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/","url":"https:\/\/careerkarma.com\/blog\/python-rename-file\/","name":"Python Rename File: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg","datePublished":"2020-12-28T12:31:02+00:00","dateModified":"2023-12-01T12:06:25+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The os.rename() method allows you to rename a file in Python. On Career Karma, learn how to rename a file using os.rename().","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-rename-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/advice-advise-advisor-business-7075-2.jpg","width":1000,"height":663},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-rename-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python Rename File: A Step-By-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=17680"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17680\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17683"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}