Thanks Kevin! I believe I'm following your instructions, but the ticket is not created:

{
"alert": true,
"autorespond": true,
"source": "API",
"name": "Angry User",
"email": "api@osticket.com",
"phone": "3185558634X123",
"subject": "Testing API",
"ip": "123.211.233.122",
"message": "data:text/html,MESSAGE <b>HERE</b>",
"infraccion-pdf": [
{"image.png": "data:image/png;base64,R0lGODdhMAA..."},
]
}

Its gibing me 500 internal error:

thanks

    apipostman

    Remove the trailing comma at the end of the attachment object. Also, check your error logs for any related errors.

    Cheers.

      apipostman

      Where was the field added? What form? Is that form attached to the help topic you are setting in the API request?

      Cheers.

      Kevin, first of all thank you so much for the support.

      This is the form with the custom field "infraccion-pdf"

      This is the help topic with ID 1:



      and here the help topic with the form:

      Anything else that could help understand this?

      apipostman

      You need to add "topicId": 1, to your JSON payload or set that help topic as the default help topic in your system settings.

      Cheers.

      apipostman

      Idk then, I’ll have to test on Monday to see. It’s basically saying that field isn’t available with the options you provided. So it’s likely disabled somewhere or not attached to the help topic or something.

      Cheers.

        9 days later
        Write a Reply...