Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
SharePoint REST API. 400 Bad Request when Making an AJAX call on SharePoint List

Good Afternoon. I'm not sure what I'm doing wrong here. I have a REST API call on a SharePoint list and for the life of me cannot figure out why I'm getting a 400 Bad Request message. Here's my call....

myURL = "my sharepoint site URL"

$.ajax({
url: myURL + "/org/Analysis/_api/web/list/GetByTitle('Analysis')/items?$filter=Accepted%20eq%20%27Yes%27&$select=Date_x0020_of_x0020_Activity, Accepted"
method: "GET"
headers:{"ACCEPT" : "application/json;odata=verbose",
"content-type":"application/json;odata=verbose"
},
// success function and some other stuff


});

Thank you in advance....

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Can you try with changing the code?

headers: { 
    "Accept": "application/json;odata=verbose",  
    "Content-Type": "application/json;odata=verbose",  
    "X-RequestDigest": $("#__REQUESTDIGEST").val()  
}
about 4 years ago · Juan Pablo Isaza Report

0

You can refer to the following url

_api/web/list/GetByTitle('Analysis')/items?$select=Date_x0020_of_x0020_Activity,Accepted&$filter=Accepted eq 'Yes'
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!