SOLVED

Re: 403 Forbidden

Go to solution
Ashwini_Hejmad1
Level 2

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

1 ACCEPTED SOLUTION
Ashwini_Hejmad1
Level 2

Thanks. The issue was resolved

View solution in original post

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

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
Level 2

Thanks. The issue was resolved

Ashwini_Hejmad1
Level 2

The issue was resolved with the solution provided

SanfordWhiteman
Level 10 - Community Moderator

Ok, please mark my answer as Correct.

SanfordWhiteman
Level 10 - Community Moderator

I kind of meant my answer. Anyway....