DEV Community

kambala yashwanth
kambala yashwanth

Posted on

1 2

[Solved] DEV API Can't able to update an article !

I am using postman to create new Articles , but failing to update the article

Creating an article

Alt Text

Updating an article

Alt Text

Please give me any working examples of creating and updating an article

getting when i try to update article

    <!DOCTYPE html>
<html>

<head>
    <title>The page you were looking for doesn't exist (404)</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <style>
        .not-found-page {
            height: 100vh;
            min-height: 500px;
        }

        .tv__outer {
            display: table;
            position: absolute;
            height: 98%;
            width: 98%;
        }

        .tv__middle {
            display: table-cell;
            vertical-align: middle;
            position: relative;
        }

        .tv__inner {
            margin-left: auto;
            margin-right: auto;
            display: table;
        }

        .tv__inner--special {
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
            -webkit-animation-name: fade;
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-duration: 2s;
            animation-name: fade;
            animation-iteration-count: infinite;
            animation-duration: 2s;
        }

        .tv__inner--text {
            margin-left: auto;
            margin-right: auto;
            display: table;
            font-size: 22px;
            font-weight: 500;
        }

        .tv__inner--special,
        .tv__inner {
            max-width: 85%;
            width: 300px;
            border: 25px solid rgb(54, 55, 124);
            border-radius: 36px;
        }

        .tv__inner--text {
            text-align: center;
            max-width: 90%;
        }

        @-webkit-keyframes fade {
            0% {
                opacity: 1;
            }

            10% {
                opacity: 1;
            }

            20% {
                opacity: 0;
            }

            25% {
                opacity: 0;
            }

            28% {
                opacity: 0;
            }

            30% {
                opacity: 0;
            }

            33% {
                opacity: 1;
            }

            45% {
                opacity: 1;
            }

            53% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }

        @keyframes fade {
            0% {
                opacity: 1;
            }

            10% {
                opacity: 1;
            }

            20% {
                opacity: 0;
            }

            25% {
                opacity: 0;
            }

            28% {
                opacity: 0;
            }

            30% {
                opacity: 0;
            }

            33% {
                opacity: 1;
            }

            45% {
                opacity: 1;
            }

            53% {
                opacity: 0;
            }

            100% {
                opacity: 0;
            }
        }
    </style>
</head>

<body>
    <div class="not-found-page base-background-color">
        <div class="tv__outer">
            <div class="tv__middle">
                <img class="tv__inner--special" src="https://i.imgur.com/Vyyjycv.gif" alt="404 not found image as TV static">
                <img class="tv__inner" src="https://i.imgur.com/3v0LCiP.jpg" alt="404 not found DEV logo">
                <br>
                <p class="tv__inner--text">This page does not exist <br><br> <a href="https://dev.to/">Return to Home
                        Page</a></p>
            </div>
        </div>
    </div>
</body>

</html>

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (1)

Collapse
 
yashwanth2804 profile image
kambala yashwanth

Solved the ISSUE !

My bad have to use PUT Method for update article not the POST Method.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay