From 0e2fdf4a1c4723372e4e296ad3558cd3279b6b35 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 14 Sep 2018 11:48:22 -0400 Subject: [PATCH] fixed path for login/logout api --- docs/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index a5bdd35f3..942d701e2 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -29,13 +29,13 @@ This means if you plan to use cuRL to experiment with these APIs, you first need :: - curl -XPOST -d "user=XXXX&pass=YYYY" -c cookies.txt http://yourzmip/zm/api/login.json + curl -XPOST -d "user=XXXX&pass=YYYY" -c cookies.txt http://yourzmip/zm/api/host/login.json Staring ZM 1.32.0, you also have a `logout` API that basically clears your session. It looks like this: :: - curl -b cookies.txt http://yourzmip/zm/api/logout.json + curl -b cookies.txt http://yourzmip/zm/api/host/logout.json **Login process for older versions of ZoneMinder**