Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by  kelton23om 2 years, 11 months ago.

  • Creator
  • #7515


    Hi guys,

    I want to add some tags via Account or contact API (Post/Put).
    The handler seems to be able to support that. But i didn’t found how to write the JSON correctly.

    So, is it already implemented ? or should i extends handler ?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #7536

    Alexandr Smaga

    Hello @kelton23om !

    POST and PUT requests usually processed through the same form and “save handler” as the UI requests. So basically it’s possible to create/assign tags via API call, but format for the passed data is not well designed for this purposes, because you have to pass all existing assigned tags back as well.

    Here is an example of request that creates new tag assign one own tag and one tag that is not owned by current user




    thanks for your answer,

    I tried your solution and indeed it works with js call (with Form Data)
    But i can’t insert a tag by using the api Sanbox, or by using Guzzle (with json content).

    I wrote the JSON in different ways, but i never could insert tag.

    Any idea ??

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.