curl --request POST \
--url https://rest-api.smsmngr.com/v1/apikey/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"default_callback_url": "https://example.com/hook",
"note": "eshop"
}
'{
"success": true
}{
"message": "Missing 'default_callback_url' or 'note' in request data"
}{
"message": "Apikey scope 'api' is not allowed to change settings"
}{
"message": "<string>"
}API klíče
Upravit aktuální API klíč
Upravuje nastavení volajícího API klíče. Obě pole musí být přítomna (prázdný řetězec hodnotu smaže). Změna default_callback_url zároveň aktualizuje webhook URL u všech odesílatelů klíče.
POST
/
apikey
/
update
curl --request POST \
--url https://rest-api.smsmngr.com/v1/apikey/update \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"default_callback_url": "https://example.com/hook",
"note": "eshop"
}
'{
"success": true
}{
"message": "Missing 'default_callback_url' or 'note' in request data"
}{
"message": "Apikey scope 'api' is not allowed to change settings"
}{
"message": "<string>"
}Was this page helpful?