POST
{baseUrlAdmin}
/
api
/
internal
/
cache
/
clear
curl --request POST \
--url {{baseUrlAdmin}}/api/internal/cache/clear \
--header 'Authorization: Bearer <your-auth-token>' \
--header 'Content-Type: application/json' \
--data '{"cacheNames": ["flowx:core:cache"]}'

{ "status": "success" }

The request is sent to the specified API endpoint, and upon successful execution, it clears the cache with the specified name.

Ensure that this operation is carried out by a user with an admin role.

baseUrlAdmin
string

The URL of admin.

cacheNames
object

This JSON payload specifies the cache name(s) that need to be cleared. In this case, it targets a cache with the name “flowx:core:cache”.

{
    "cacheNames": [
        "flowx:core:cache"
        ]
}
curl --request POST \
--url {{baseUrlAdmin}}/api/internal/cache/clear \
--header 'Authorization: Bearer <your-auth-token>' \
--header 'Content-Type: application/json' \
--data '{"cacheNames": ["flowx:core:cache"]}'

{ "status": "success" }