Reply
Newbie
mniels
Posts: 1
0

Database.com REST service with ASP.NET

I am trying to use the Database.com REST API to update a record in my database.

 

Using the REST explorer in my workbench it always gives me an HTTP error (400 bad request) + some HTML that says:

We are down for maintenance. Sorry for the inconvenience. We'll be back shortly.

 

I also get the same error using other (external) REST clients.

The odd thing is that it is only occurring with the update method (PATCH). the Get and Query method work perfectly...

 

What I have entered in the rest explorer is the following: (I left out my ID numbers)


Methodurl: /services/data/v26.0/sobjects/Album__c/{albumid}

Request headers:
Content-Type: application/json; charset=UTF-8
Accept: application/json

Request body:
{"Name":"Schoppen aas"}

Thanks for any suggestions!