‎14-07-2023 12:01 PM
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
}
}
‎17-07-2023 03:37 PM
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
}
}
‎17-07-2023 03:29 PM
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"