cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HOPEX V5 API Integration createpersonsystem login array insert process

fatihmert
New Contributor

Hello,
We get an error when we want to add data to the login array in createpersonsystem.
Our sample script is below. Can you share the correct spelling?

mutation {
createPersonSystem(personSystem:{
name: "kkkkk",
email: "kk@kk.com",
login( login:{
name:"aaa",
usercode:"lll"
})
}){
id,
name,
email
}
}

2 Replies

oguimard
Retired

Hello,

out of the box login cannot be created by REST API

The syntaxe you are writing is not valid. Here is an example of a valid syntaxe :

 

mutation {
  createPersonSystem (
    personSystem:{
      name:"person system name"
      login:{
        action:ADD
        list:{
          id:"xxxxx"
        }
      }
    }
  
  ) {
    id
    name
    login
  }
  
}

 

AHassan
MEGA Partner
MEGA Partner

Hi,

This post might help you:
https://community.mega.com/t5/REST-API/Mutation-Absolute-Identifier-External-Identifier-Temporary-Id...

Pls remember Person (System) and Logins are two different MetaClasses. You might need to use: "mutation multiple"