put https://endereco-do-ead.com/api/1/questions/
Responses
xxxxxxxxxx
10$data = array('pergunta_id' => 2, 'pergunta' => 'Sua pergunta');
$ch = curl_init('https://SEU_EAD/api/1/questions/29');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('x-auth-token: SEU_TOKEN'));
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$return = curl_exec($ch);
$error = curl_error($ch);
curl_close ($ch);