Başvuru Konu Güncelle
Başvuru konu bilgilerini günceller (ID veya code ile).
Endpoint
PUT /api/v1/application-subjects/\{identifier\}
PATCH /api/v1/application-subjects/\{identifier\}
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
application_subjects.update- Başvuru konusu güncelleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Content-Type | application/json | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
identifier | integer/string | Evet | Başvuru konu ID'si veya kodu |
Request Body
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
code | string | Hayır | Başvuru konu kodu (unique) |
title | string | Hayır | Başvuru konu başlığı |
description | string | Hayır | Başvuru konu açıklaması |
sort_order | integer | Hayır | Sıralama değeri |
is_active | boolean | Hayır | Aktif durumu |
Example Request
{
"title": "Bilgi Güvenliği Yönetim Sistemi Updated",
"sort_order": 1,
"is_active": true
}
Response
Success Response (200 OK)
{
"id": 2,
"code": "CERT002",
"title": "Bilgi Güvenliği Yönetim Sistemi Updated",
"description": "ISO 27001:2022 sertifikasyonu",
"sort_order": 1,
"is_active": true,
"updated_at": "2025-11-20T12:00:00.000000Z"
}
Error Responses
404 Not Found
{
"message": "Application subject not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X PATCH https://api.example.com/api/v1/application-subjects/CERT002 \
-H "Authorization: Bearer \{token\}" \
-H "Content-Type: application/json" \
-d '{
"title": "Bilgi Güvenliği Yönetim Sistemi Updated",
"sort_order": 1
}'
Notes
- ID veya code ile güncelleme yapılabilir
codebenzersiz olmalıdırPUTtüm alanları günceller,PATCHsadece gönderilen alanları günceller
Related Endpoints
- Başvuru Konu Detayı - Başvuru konu detayını getir
- Başvuru Konu Sil - Başvuru konu sil