I’m trying to send a test email using the REST API endpoint mentioned in the title. However, for some reason it just gives 404 not found, even though some other endpoints work. The examples below illustrate this. The endpoint is mentioned in the docs at https://ubuntu.com/landscape/docs/reference/api/rest-api-endpoints/person/
curl --http2 -X GET -I https://landscape.mydomain.tld/api/v2/person -H “Content-Type: application/json” -H “Authorization: Bearer $JWT”
HTTP/2 200
server: TwistedWeb/25.5.0
date: Thu, 08 Oct 2026 08:34:55 GMT
access-control-allow-origin: http://localhost:8080
access-control-allow-headers: Content-Type, Authorization
content-length: 339
content-type: application/json
vary: Accept-Encoding,User-Agent
curl --http2 -X POST https://landscape.mydomain.tld/api/v2/person:test-email -H “Content-Type: application/json” -H “Authorization: Bearer $JWT”
{“error”: “NotFoundError”, “message”: “Not found”}
The corresponding log entries in /var/log/landscape-server/api.log on the landscape server are:
Oct 8 08:34:55 api-1 INFO "127.0.0.1" - - [08/Oct/2026:08:34:55 +0000] "GET /api/v2/person HTTP/1.1" 200 339 "-" "curl/8.12.1"
Oct 8 08:35:21 api-1 INFO "127.0.0.1" - - [08/Oct/2026:08:35:21 +0000] "POST /api/v2/person:test-email HTTP/1.1" 404 50 "-" "curl/8.12.1"
And in /var/log/apache2/landscape_access.log
9.9.9.9 - - [08/Oct/2026:08:34:55 +0000] “GET /api/v2/person HTTP/2.0” 200 497 “-” “curl/8.12.1”
9.9.9.9 - - [08/Oct/2026:08:35:21 +0000] “POST /api/v2/person:test-email HTTP/2.0” 404 196 “-” “curl/8.12.1”
EDIT: I maybe should have specified that it’s Landscape 26.04 running on Ubuntu 26.04.