@extends('layouts.app') @section('title', 'Edit API Client') @section('breadcrumb') @endsection @section('content')
@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif

Edit API Client: {{ $apiClient->name }}

View Back to List
Update API Client Information
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Client Configuration
Maximum number of requests per minute allowed for this client @error('rate_limit')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
Inactive clients cannot make API requests

Security Settings
Comma-separated list of IP addresses or CIDR blocks. Leave empty to allow all IPs. @error('allowed_ips')
{{ $message }}
@enderror

Note: Client ID and Client Secret cannot be changed after creation. If you need new credentials, you'll need to create a new API client.
Current Information

{{ $apiClient->client_id }}

{{ $apiClient->created_at->format('M d, Y H:i:s') }}

{{ $apiClient->last_used_at ? $apiClient->last_used_at->format('M d, Y H:i:s') : 'Never' }}

{{ $apiClient->tokens()->count() }}

Important Notes

Changing Status: Deactivating a client will immediately prevent all API requests using this client.

Rate Limits: Changes to rate limits take effect immediately and apply to all active tokens.

IP Restrictions: Adding IP restrictions will immediately block requests from non-allowed IPs.

@endsection