Comments (8)
Additionally I found out that a call to delete a client is also not working for me (while e.g. deleting a group works fine). It's throwing a 404.
The web interface seems to use /clients:batchDelete
always, so I can't check what's going on.
from ftl.
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.
from ftl.
The issue is still there.
from ftl.
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.
from ftl.
I still have the issue
from ftl.
Sorry for this to have gone unnoticed for so long, I moved it into the correct repository now.
extra client
field (PUT
)
This is a left-over from API development, it isn't needed.
I'm not sure what you mean by
without the correct client field, it looks like Pi-hole creates a new client instead of updating an existing one.
The client to be modified has to be specified through the URI (and needs to be URI-encoded if that matters, e.g. for MAC addresses or IPv6 addresses : -> %3A
)
A request may look like:
PUT https://pi.hole/api/clients/00%3A11%3A22%3A44%3A55%3A66
{"groups":[0],"comment":"ABC"}
which will edit the client 00:11:22:33:44:55
if it exists. I just confirmed this indeed works as expected and does not create a new client.
extra enabled
field (PUT
)
This is a copy-paste remnant from development as well and entirely ignored by the /clients
endpoint
extra name
field (GET
)
This is a read-only field transmitted by the API in case it knows the host name connected too this IP/MAC address. It does not have to be sent in POST
/PUT
but is automatically populated by DNS data and contained in GET
.
DELETE
not working
Please check if you are correctly encoding the client (as above in no. 1), I can delete clients in a local test just fine.
Related changes
from ftl.
The point you've mentioned have been fixed in the code. Feel free to reopen/comment if you find something we've talked about here not having been fixed.
from ftl.
Related Issues (20)
- Pi-hole 6 API: `POST \dns\blocking` documentation issue
- Pi-hole 6 API: `POST \dns\blocking` request ignores the `timer` HOT 9
- FTL Crash HOT 1
- DBExport Config HOT 1
- debug.api help text needs another description HOT 1
- FTL Crash HOT 4
- Unable to build FTL from source HOT 9
- app password not working in v6 HOT 7
- [Pi-hole V6] Ftl crash because of database? HOT 10
- [Beta V6] FTL-Checksum error? HOT 4
- Compilation failure with GCC 14 HOT 7
- dns.hosts(0): invalid hostname HOT 4
- v6 Seg fault crash on first startup macOS M2 HOT 14
- Pihole-FTL v6 crash when ipv6 disabled and ipv6 dns given. HOT 2
- crash on internet outage HOT 6
- DHCP server is configured with incorrect netmask HOT 8
- Pihole is not installing update HOT 6
- Overzealous inline opitimizations? HOT 7
- FTL crashes when activating DHCP server HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftl.