Increment my counter using remote python rest api

Hello,

New on the forum, hope I am on the right part of the forum.
I would like to increment my counter with a remote python script. I am able to read the counter but
can’t get the increment to work.
It returns a 404. any hint what is wrong? ( i have shortened my bearer code to keep it secret)
I have created a helper counter which i can manualy increment.

Many thanks in advantage.

Frank
from requests import post

url = "http://192.168.1.152:8123/api/services/counter.increment/counter.vliegtuigen"
headers = {
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLC_and_some_more",
    "content-type": "application/json",
}

response = post(url, headers=headers)
print(response.text)

Sometimes you find your own answer. After long trying I got it to work. See code below.

Python  Put :

from requests import post

url = "http://192.168.1.152:8123/api/services/Counter/Increment"
headers = {
    "Authorization": "Bearer eyJ0eXAiOiJKV",
    "content-type": "application/json",
}
data = {"entity_id": "counter.vliegtuigen"}
response = post(url, headers=headers, json=data)
print(response.text)

Python Get: 

from requests import get

url = "http://192.168.1.152:8123/api/states/counter.vliegtuigen"
headers = {
    "Authorization": "Bearer eyJ0eXAiOiJKV",
    "content-type": "application/json",
}

response = get(url, headers=headers)
print(response.text)