Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. bw
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    bw

    @bw

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    bw Unfollow Follow

    Latest posts made by bw

    • Problems creating person objects

      Hello,

      I am relatively new to the I-Doit API. I have the following json request to create a new person object:

      {
          "method":  "cmdb.object.create",
          "params":  {
                         "categories":  {
                                            "C__CATG__LOGIN":  {
                                                                   "disable_login":  1,
                                                                   "username":  "logonname"
                                                               },
                                            "C__CATG__ORGANIZATION_ASSIGNMENT":  {
                                                                                     "assigned_organization":  31
                                                                                 },
                                            "C__CATG__CONTACT":  {
                                                                     "phone_company":  "+049 3641 111 111"
                                                                 },
                                            "C__CATG__PERSON":  {
                                                                    "mail_address":  "firstname.lastname@domain.com",
                                                                    "last_name":  "lastname",
                                                                    "first_name":  "firstname"
                                                                }
                                        },
                         "title":  "firstname lastname",
                         "apikey":  "apikey",
                         "type":  "C__OBJTYPE__PERSON"
                     },
          "id":  343653293,
          "jsonrpc":  "2.0"
      }
      
      

      Unfortunately I always get the following error:

      code=-32600; message=Invalid request : Provided request is not a valid json rpc.; data=

      Can someone tell me what I am doing wrong here? The header is correct, it also works for creating server objects...

      posted in Development
      B
      bw