Organizasyon Güncelle
Organizasyon bilgilerini günceller.
Endpoint
PUT /api/v1/organizations/\{uuid\}
PATCH /api/v1/organizations/\{uuid\}
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
organizations.update- Tüm organizasyonları güncellemeorganizations.update.own- Sadece kendi organizasyonlarını güncelleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Content-Type | application/json | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Organizasyon UUID'si |
Request Body
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
organization_name | string | Hayır | Organizasyon adı |
organization_code | string | Hayır | Organizasyon kodu |
legal_name | string | Hayır | Yasal ad |
country | string | Hayır | Ülke kodu |
city | string | Hayır | Şehir |
is_active | boolean | Hayır | Aktif durumu |
Example Request
{
"organization_name": "CyberCert Updated",
"city": "Ankara",
"is_active": true
}
Response
Success Response (200 OK)
{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"organization_name": "CyberCert Updated",
"organization_code": "CYB01",
"legal_name": "CyberCert Ltd.",
"country": "TR",
"city": "Ankara",
"is_active": true,
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z"
}
Error Responses
404 Not Found
{
"message": "Organization not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X PATCH https://api.example.com/api/v1/organizations/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer \{token\}" \
-H "Content-Type: application/json" \
-d '{
"organization_name": "CyberCert Updated",
"city": "Ankara"
}'
Notes
.ownpermission'ı olan kullanıcılar sadece kendi organizasyonlarını güncelleyebilirPUTtüm alanları günceller,PATCHsadece gönderilen alanları günceller
Related Endpoints
- Organizasyon Detayı - Organizasyon detayını getir
- Organizasyon Sil - Organizasyon sil