mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
20 lines
558 B
PHP
20 lines
558 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Api;
|
|
|
|
use Pterodactyl\Models\ApiKey;
|
|
|
|
interface UpdatesApiKeys
|
|
{
|
|
/**
|
|
* The token is kept. The input and the permissions are validated here, only what is given
|
|
* changes, and the permissions only apply to application keys.
|
|
*
|
|
* @param array<string, mixed> $input optionally memo
|
|
* @param array<string, mixed> $permissions the r_* column of any AdminAcl resource
|
|
*/
|
|
public function update(ApiKey $key, array $input, array $permissions = []): ApiKey;
|
|
}
|