Toggle Data
POST https://api.pxserv.net/database/toggleData
This endpoint toggles the value stored under a specified key between 0 and 1.
Headers
| Key | Value |
|---|---|
| Content-Type | application/json |
| apikey | Project API Key |
| Accept-Language | tr | en |
Body
| Key | Type | Description |
|---|---|---|
key | string | Data key |
Response
200
{
"status": 200,
"message": "OK",
"data": {}
}Error
{
"status": 401,
"message": "Invalid API key.",
"data": {}
}Last updated