Delete Questions
FutureHTTP Request [DELETE]
https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{questionid}
- cURL
- C#
- JavaScript
- Python
curl -X 'DELETE' \
'https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{questionid}' \
-H 'accept: */*' \
-H 'Authorization: bearer any'
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
private const string ApiUrlBase = "https://parceiros.empregos.com.br/api/questions/";
private const string ExternalJobPostingId = "YOUR_EXTERNAL_JOB_POSTING_ID";
private const string QuestionId = "YOUR_QUESTION_ID";
static async Task Main(string[] args)
{
await DeleteQuestion();
}
static async Task DeleteQuestion()
{
using (HttpClient httpClient = new HttpClient())
{
httpClient.DefaultRequestHeaders.Accept.Clear();
httpClient.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("*/*"));
httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("bearer", "any");
var apiUrl = ApiUrlBase + ExternalJobPostingId + "/" + QuestionId;
var response = await httpClient.DeleteAsync(apiUrl);
if (response.IsSuccessStatusCode)
{
Console.WriteLine($"Question with ID {QuestionId} for Job Posting ID {ExternalJobPostingId} deleted successfully.");
}
else
{
Console.WriteLine($"Failed to delete question. Status Code: {response.StatusCode}");
}
}
}
}
const externalJobPostingId = "string";
const questionId = "string";
const apiUrl = `https://parceiros.empregos.com.br/api/questions/${externalJobPostingId}/${questionid}`;
fetch(apiUrl, {
method: "DELETE",
headers: {
Accept: "_/_",
Authorization: "bearer any",
},
});
import requests
externalJobPostingId = "string"
questionid = "string"
url = f'https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{questionid}'
headers = {
'accept': '*/*',
'Authorization': 'bearer any'
}
response = requests.delete(url, headers=headers)
Response
HTTP Request [GET]
https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{applicationid}
- JavaScript
- Python
- cURL
const externalJobPostingId = "string";
const questionId = "string";
const apiUrl = `https://parceiros.empregos.com.br/api/questions/${externalJobPostingId}/${applicationid}`;
fetch(apiUrl, {
method: "GET",
headers: {
Accept: "_/_",
Authorization: "bearer any",
"Content-Type": "application/json",
},
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error("Error:", error));
import requests
import json
externalJobPostingId = "string"
questionid = "string"
url = f'https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{questionid}'
headers = {
'accept': '*/*',
'Authorization': 'bearer any',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
data = response.json()
print(data)
curl -X 'GET' \
'https://parceiros.empregos.com.br/api/questions/{externalJobPostingId}/{questionid}' \
-H 'accept: */*' \
-H 'Authorization: bearer any' \
-H 'Content-Type: application/json'