403 Forbidden | Community
Skip to main content
Ashwini_Hejmad1
New Participant
August 28, 2017
Solved

403 Forbidden

  • August 28, 2017
  • 1 reply
  • 5343 views

Hello

I am trying to create a lead using the following information

https://mktorest.com/POST/rest/v1/leads.json?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx

Payload

   "action":"createOnly",

   "lookupField":"email",

   "input":[ 

      { 

         "email":"kjashaedd-1@klooblept.com",

         "firstName":"Kataldar-1",

         "postalCode":"04828"

      }

   ]

}

But when i execute the request. I get the following error

<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>

Please advise

Ashwini

Best answer by Ashwini_Hejmad1

Thanks. The issue was resolved

1 reply

SanfordWhiteman
New Participant
August 28, 2017

That's not the correct URL. You should reread the docs. REST URLs begin with the Munchkin ID and do not contain the word POST (that's the HTTP method, not in the path).

Why are you using the API exactly, and from what language?

Ashwini_Hejmad1
Ashwini_Hejmad1AuthorAccepted solution
New Participant
August 28, 2017

Thanks. The issue was resolved

SanfordWhiteman
New Participant
August 28, 2017

Ok, please mark my answer as Correct.