Request
Request URL

https://apim.eu.mybuildings.abb.com/adtg-api/v1/graphql

Request headers
Fieldtypedescription
AuthorizationstringOAuth 2.0 access token obtained from eu.mybuildings.abb.com.
Request body
{ISystemWIP(dtId:"c376b842-8f78-4b69-ae31-f815f24d5b90"){DeviceManagementWIP{RPCCreateCredentialMethod{callMethod(password:"234113",to:1,from:1,max:1,timeprofile:0,name:"ookk",type:2,block:4,floor:1,room:1){code} }}}}

password - [String] If creating a PIN-Code, this filed is need, the password need provide by the cloud side. If creating a QR-Code, this filed is not need, the device will automatically generate a password
max - [Float] duration limit, how much time usable
to - [Float] the number of seconds from Jan 1, 1970
from - [Float] the number of seconds from Jan 1, 1970
timeprofile -[Float] whether there is a time limit. 0 means no a time limit, 1 means a time limit
name - [Float] custom name
block,floor,room - [Float] Physical address

Response
Success
{
  "data": {
    "ISystemWIP": [
      {
        "DeviceManagementWIP": {
          "RPCCreateCredentialMethod": {
            "callMethod": {
              "code": 200
            }
          }
        }
      }
    ]
  }
}
Failed
{
  "data": {
    "ISystemWIP": [
      {
        "DeviceManagementWIP": {
          "RPCCreateCredentialMethod": {
            "callMethod": {
              "code": 409
            }
          }
        }
      }
    ]
  }
}