Unable to send section creation request via API
I am trying to create a section via the API but I'm running into issues. I think the server is interpreting my POST request as a GET request and failing to perform the operation I am requesting.
Would somebody please provide a full example of a successful section creation request that I can reference?
API route in question:
Thanks in advance.
Answers
-
Hi Derik,
The following resources will be useful:
What status response/code is being returned to you?
Make sure your application has the necessary scopes, and user permissions.
Hope this helps!
-
Thanks @Chris.S.534. I have already looked at both of those resources and I'm still failing to get the result I'm looking for. The scopes and permissions are all accounted for.
I'm receiving the proper 200 response for the GET version of this route:
If you have an example of a successful POST request, that would be the most helpful.
Thanks.
-
Found the solution. Postman has a setting that changes the request type to a GET request when the server issues a redirect. This is the default behaviour, so I needed to enable the "Follow original HTTP method" setting.