REST Batch endpoint returns 404?

When I make a REST call to the batch.json endpoint it returns a 404 error.  I don't see anything wrong with the request, so perhaps something needs to be enabled for it to work?  Any ideas would be helpful.

This is the full request going over the wire, minus the real token and host:

POST /api.ashx/v2/batch.json HTTP/1.1
Accept: application/json
Rest-User-Token: abcdefghijklmnopqrstuvwxyz
Rest-Method: POST
Content-Length: 314
Content-Type: application/x-www-form-urlencoded
Host: anywhere.telligentdemo.com
Connection: Keep-Alive
Accept-Encoding: gzip,deflate

And the full response, minus the cookie info and the body content (which is the 404 HTML page):

HTTP/1.1 404 Not Found
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
X-FRAME-OPTIONS: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self';
X-UA-Compatible: IE=Edge
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Telligent-Evolution: 10.x
X-Powered-By: ASP.NET
Date: Tue, 23 Jan 2018 15:24:02 GMT
Content-Length: 45780
  • And here is the content passed in the POST.

    _REQUEST_0_METHOD=GET&_REQUEST_0_URL=%7E%2Fapi.ashx%2Fv2%2Fuser.json&_REQUEST_0_DATA=Id%3D2126&_REQUEST_1_METHOD=GET&_REQUEST_1_URL=%7E%2Fapi.ashx%2Fv2%2Fuser.json&_REQUEST_1_DATA=Id%3D2126&_REQUEST_2_METHOD=GET&_REQUEST_2_URL=%7E%2Fapi.ashx%2Fv2%2Fuser.json&_REQUEST_2_DATA=Id%3D2126

    And here is the decoded version of the content, for ease of reading.

    _REQUEST_0_METHOD=GET&_REQUEST_0_URL=~/api.ashx/v2/user.json&_REQUEST_0_DATA=Id=2126&_REQUEST_1_METHOD=GET&_REQUEST_1_URL=~/api.ashx/v2/user.json&_REQUEST_1_DATA=Id=2126&_REQUEST_2_METHOD=GET&_REQUEST_2_URL=~/api.ashx/v2/user.json&_REQUEST_2_DATA=Id=2126

  • You should not have a Rest-Method: Post header.   Its not valid as the site responds to the post request directly.  Thats only for PUT and DELETE.  Accept is also not necessary