MENU
      Request purge
        • PDF

        Request purge

        • PDF

        Article summary

        Overview

        Request a purge job.

        Note

        The purge time required for each purge type at the edge with a global service area is as follows.

        • ALL, DIRECTORY, PATTERN: about 40 minutes of fuzzy time required
        • URL: fast fuzzy supported

        Request

        Request URL

        POST
        https://edge.apigw.ntruss.com/api/v1/purge
        Plain text

        Request body

        CategoryRequiredTypeRestrictionsDescription
        edgeIdYesLongEdge number
        purgeTypeYesPurgeTypePurge type
        purgeTargetConditionalList<String>See PurgeType descriptionPurge target list

        PurgeType

        ValueDescriptionpurgeTarget restrictionsExamples
        ALLPurge all contentMust be omittednull
        DIRECTORYPer-directory purgeStart with the "/" character
        End with "/*" string
        /*
        /src/*
        /src/images/*
        PATTERNPurge content by extensionStart with the "/" character
        End with "*.abc" extension notation
        /*.jpg
        /static/*.png
        /static/images/*.css
        URLPurge content specified by URLStart with the "/" character
        "*" wildcard unavailable
        /src/css/main.css?version=20221124

        Response

        All responses return success or failure as an HTTP status code.

        HTTP status codeCode messageDescription
        200SuccessSearch succeeded
        401UnauthorizedAuthentication failed
        500Internal Server ErrorServer error

        Response body

        TypeDescription
        List<Long>Purge request number list

        Examples

        Request example

        https://edge.apigw.ntruss.com/api/v1/purge
        Plain text
        {
          "edgeId": 222,
          "purgeType": "DIRECTORY",
          "purgeTarget": [
            "/src/images/*",
            "/static/thumbs/*"
          ]
        }
        JSON

        Response example

        {
           "code":"0000",
           "message":"Success",
           "result":[
             9999
           ]
        }
        JSON

        Errors

        Error codeDescription
        0032Unauthorized request
        0400Request data format mismatch
        9999Server error occurred

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.