GithubHelp home page GithubHelp logo

Comments (4)

thorsteneckel avatar thorsteneckel commented on August 23, 2024

Hm. There should have not be a change. Would you mind pointing me to the part of the documentation that is wrong/doesn't work anymore?

from zammad-documentation.

MrGeneration avatar MrGeneration commented on August 23, 2024

Gladly: https://docs.zammad.org/en/latest/api/intro.html#http-token-authentication-access-token

from zammad-documentation.

thorsteneckel avatar thorsteneckel commented on August 23, 2024

Works just fine for me (latest develop):

➜  zammad git:(develop) curl -H "Authorization: Token token=-FzqCXkmepBxGU3Lcumj9yWJybhCbY2MmJWIUt7_Kupx4Ehs8nmwQOyPAXcujluz" -H "Content-Type: application/json" -X POST -d '{"title":"Help me!","group": "Users","article":{"subject":"some subject","body":"some message","type":"note","internal":false},"customer_id": 3}'  http://localhost:3000/api/v1/tickets
{"id":2,"group_id":1,"priority_id":2,"state_id":1,"organization_id":null,"number":"96002","title":"Help me!","owner_id":1,"customer_id":3,"note":null,"first_response_at":null,"first_response_escalation_at":null,"first_response_in_min":null,"first_response_diff_in_min":null,"close_at":null,"close_escalation_at":null,"close_in_min":null,"close_diff_in_min":null,"update_escalation_at":null,"update_in_min":null,"update_diff_in_min":null,"last_contact_at":null,"last_contact_agent_at":null,"last_contact_customer_at":null,"last_owner_update_at":null,"create_article_type_id":10,"create_article_sender_id":1,"article_count":1,"escalation_at":null,"pending_time":null,"type":null,"time_unit":null,"preferences":{},"updated_by_id":3,"created_by_id":3,"created_at":"2020-09-09T11:34:58.560Z","updated_at":"2020-09-09T11:34:58.842Z","article_ids":[2],"ticket_time_accounting_ids":[]}

➜  zammad git:(develop) curl -X GET -H "Authorization: Token token=-FzqCXkmepBxGU3Lcumj9yWJybhCbY2MmJWIUt7_Kupx4Ehs8nmwQOyPAXcujluz" http://localhost:3000/api/v1/tickets/2
{"id":2,"group_id":1,"priority_id":2,"state_id":1,"organization_id":null,"number":"96002","title":"Help me!","owner_id":1,"customer_id":3,"note":null,"first_response_at":null,"first_response_escalation_at":null,"first_response_in_min":null,"first_response_diff_in_min":null,"close_at":null,"close_escalation_at":null,"close_in_min":null,"close_diff_in_min":null,"update_escalation_at":null,"update_in_min":null,"update_diff_in_min":null,"last_contact_at":null,"last_contact_agent_at":null,"last_contact_customer_at":null,"last_owner_update_at":null,"create_article_type_id":10,"create_article_sender_id":1,"article_count":1,"escalation_at":null,"pending_time":null,"type":null,"time_unit":null,"preferences":{},"updated_by_id":3,"created_by_id":3,"created_at":"2020-09-09T11:34:58.560Z","updated_at":"2020-09-09T11:34:58.842Z"}

However, I noticed that at least one example payload is broken (create Ticket) and results in an error. Should I create an issue for that?

from zammad-documentation.

MrGeneration avatar MrGeneration commented on August 23, 2024

That's odd, might have changed during the "on behalf" issues indirectly.
No need to create an issue, I'll handle it. 💪

from zammad-documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.