@@ -14,11 +14,15 @@ class GdsApi::FactCheckManager < GdsApi::Base
1414 # @option [hash] previous_content Hash containing HTML content of previous content version to check against
1515 # @option [string] deadline Date a response is requested by. Use iso8601 date format: "2026-02-09"
1616 # @param [array] recipients Array of emails to be notified of the request
17+ # @option [uuid] draft_auth_bypass_id The edition's auth_bypass_id for draft origin preview access
18+ # @option [uuid] draft_content_id The edition's content_id for draft origin preview access
19+ # @option [string] draft_slug The edition's slug for the draft origin preview URL path
1720 #
1821 # @return [GdsApi::Response] Basic response with code
1922
2023 def post_fact_check ( source_app :, source_id :, requester_name :, requester_email :, current_content :,
21- recipients :, source_title : nil , source_url : nil , previous_content : nil , deadline : nil )
24+ recipients :, source_title : nil , source_url : nil , previous_content : { } , deadline : nil ,
25+ draft_auth_bypass_id : nil , draft_content_id : nil , draft_slug : nil )
2226 post_json (
2327 "#{ endpoint } /api/requests" ,
2428 source_app :,
@@ -31,6 +35,9 @@ def post_fact_check(source_app:, source_id:, requester_name:, requester_email:,
3135 previous_content :,
3236 deadline :,
3337 recipients :,
38+ draft_auth_bypass_id :,
39+ draft_content_id :,
40+ draft_slug :,
3441 )
3542 end
3643
@@ -53,10 +60,14 @@ def post_resend_emails(source_app:, source_id:)
5360 # @param [uuid] source_id The unique ID for the content
5461 # @param [hash] current_content
5562 # @option [string] source_title The title of the content (optional)
56- def patch_update_content ( source_app :, source_id :, current_content :, source_title : nil )
63+ # @option [uuid] draft_auth_bypass_id The edition's auth_bypass_id for draft origin preview access (optional)
64+ # @option [string] draft_slug The edition's slug for the draft origin preview URL path (optional)
65+ def patch_update_content ( source_app :, source_id :, current_content :, source_title : nil , draft_auth_bypass_id : nil , draft_slug : nil )
5766 payload = {
5867 source_title :,
5968 current_content :,
69+ draft_auth_bypass_id :,
70+ draft_slug :,
6071 } . compact
6172
6273 patch_json ( "#{ endpoint } /api/requests/#{ source_app } /#{ source_id } " , payload )
0 commit comments