Closed brendabell closed 2 years ago
I'm trying to create a note for a trip and I'm constantly getting the following response:
<Response> <Error> <code>400</code> <description>Input cannot be null or an empty string.</description> </Error> </Response>
My request is as follows:
Content-Type: application/json { "NoteObject": [ { "trip_id": "<hidden>", "display_name": "Sunset", "DateTime": { "date": "2022-07-05", "time": "22:05:00", "timezone": "America/Juneau", "utc_offset": "-08:00" } } ] }
I tried using XML, but it kept returning unsupported media type with Content-Type set to text/xml.
unsupported media type
Content-Type
text/xml
I know my token is active -- all calls to get trips and notes are succeeding. I registered my app for Full API Application.
Full API Application
What am I doing wrong?
Never mind. The API documentation is extremely vague with its examples. I stumbled on the responses to https://github.com/tripit/api/issues/233 and that cleared things up.
I'm trying to create a note for a trip and I'm constantly getting the following response:
My request is as follows:
I tried using XML, but it kept returning
unsupported media type
withContent-Type
set totext/xml
.I know my token is active -- all calls to get trips and notes are succeeding. I registered my app for
Full API Application
.What am I doing wrong?