Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    custom fields über API schreiben mittels cmdb.object.create geht nicht

    Scheduled Pinned Locked Moved Allgemein
    3 Posts 2 Posters 338 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      FlatErik
      last edited by

      Guten Tag,

      es gelingt uns nicht über die API in das Attribut "c_1663680235067" der benutzerdefinierten Kategorie "IT-TEST" mit "method": "cmdb.object.create" zuschreiben.
      Woran könnte es liegen?

      {
          "version": "2.0",
          "method": "cmdb.object.create",
          "params": {
              "type": "C__OBJTYPE__SD_PCARBEITSPLATZ", 
              "title": "Mein TEST PC7",
              "apikey": ",XXXX",
              "language": "de",
              "defaultTemplate": 1,
              "categories": {
                       "C__CAT__CUSTOM_FIELDS_IT-TEST": [
                              {"c_1663680235067": "12345678"
                              }
                              ]
               }
          },
          "id": 1
      }
      

      Viele Grüße

      Erik

      MartinVM 1 Reply Last reply Reply Quote 0
      • MartinVM Offline
        MartinV @FlatErik
        last edited by MartinV

        @FlatErik
        Schau mal unter Administration > Schnittstellen / externe Daten > JSON-RPC API > Kategorien und Attribute, ob Du nicht in der Konstante der Kategorie einen Schreibfehler hast. I.d.R. heißen die C__CATG__CUSTOM_FIELDS_xxx

        HTH
        Martin

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          FlatErik @MartinV
          last edited by FlatErik

          @MartinV
          Danke! Jetzt gehts!
          Wir hatten auch vergessen f_text_ vor c_1663680235067 zu setzten.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post