{{baseUrl}}/requests/:id

PATCH {{baseUrl}}/requests/:id

This endpoint allows you to modify some fields of the request and then close it (when the reqeust has state NEW) or to select a result produced by the search (in documents that 'hasSearch'=true)

Request Body

{"state"=>"<string>", "search"=>{"field0"=>"<string>", "fieldN"=>"<string>"}, "search.fieldN"=>"<string>", "notifyEmail"=>"<string>", "callback"=>{"method"=>"<string>", "field"=>"<string>", "url"=>"<string>", "headers"=>{"key"=>"<string>"}, "data"=>"<object>"}, "selectedOptions"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;documentId&quot;:&quot;6687eed51a241a5d1be0f9fa&quot;,&quot;search&quot;:{&quot;field0&quot;:&quot;12485671666&quot;},&quot;callback&quot;:{&quot;url&quot;:&quot;https://webhook.site/f24cec85-22e3-4f7c-8ec0-227b240daa42&quot;,&quot;field&quot;:&quot;data&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;headers&quot;:{&quot;test_header&quot;:&quot;some_string&quot;},&quot;data&quot;:{}},&quot;timestamps&quot;:{&quot;creation&quot;:1724416377,&quot;NEW&quot;:1724416377,&quot;WAIT&quot;:1724416377,&quot;lastUpdate&quot;:1724416393},&quot;state&quot;:&quot;WAIT&quot;,&quot;readableSearch&quot;:{&quot;taxCode&quot;:&quot;12485671666&quot;},&quot;optionsPrice&quot;:0,&quot;selectedOptions&quot;:null,&quot;notifyEmail&quot;:null,&quot;name&quot;:&quot;Statuto&quot;,&quot;hasSearch&quot;:false,&quot;searchPrice&quot;:0,&quot;documentPrice&quot;:4.9,&quot;totalPrice&quot;:4.9,&quot;documents&quot;:null,&quot;resultId&quot;:null,&quot;results&quot;:null,&quot;id&quot;:&quot;66c881896de559cb65055392&quot;},&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}