[Python] How can I create a form in ServiceM8? Says badge name is limited to 12 characters

Discussão em 'Python' iniciado por Stack, Julho 3, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to create a form in ServiceM8. However, when I do, it's using the name to create the badge_name, which is over 12 characters. This is causing a 400. When I try to pass badge_name as part of the payload, it says: "Field(s) ["badge_name"] were ignored as the they are not valid for this endpoint."

    <html>
    2025-07-03T19:22:19.088358544Z app[worker.1]: <head>
    2025-07-03T19:22:19.088361414Z app[worker.1]: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    2025-07-03T19:22:19.088364317Z app[worker.1]: <title>400 Bad Request</title>
    2025-07-03T19:22:19.088366952Z app[worker.1]: </head>
    2025-07-03T19:22:19.088369405Z app[worker.1]: <body>
    2025-07-03T19:22:19.088371866Z app[worker.1]: <h1>Bad Request</h1>
    2025-07-03T19:22:19.088374473Z app[worker.1]: <p>Badge Name must be less than 12 characters.</p>
    2025-07-03T19:22:19.088377102Z app[worker.1]: <hr />
    2025-07-03T19:22:19.088379580Z app[worker.1]: <address>ServiceM8/1.0</address>
    2025-07-03T19:22:19.088382147Z app[worker.1]: </body>
    2025-07-03T19:22:19.088384633Z app[worker.1]: </html>

    Continue reading...

Compartilhe esta Página