Ana içeriğe geç

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

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet
Content-Typeapplication/jsonEvet

Path Parameters

ParametreTipZorunluAçıklama
identifierinteger/stringEvetBaşvuru konu ID'si veya kodu

Request Body

ParametreTipZorunluAçıklama
codestringHayırBaşvuru konu kodu (unique)
titlestringHayırBaşvuru konu başlığı
descriptionstringHayırBaşvuru konu açıklaması
sort_orderintegerHayırSıralama değeri
is_activebooleanHayırAktif 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
  • code benzersiz olmalıdır
  • PUT tüm alanları günceller, PATCH sadece gönderilen alanları günceller