Sorry, we didn't find any relevant articles for you.

Send us your queries using the form below and we will get back to you with a solution.

API Method AttributesAdd

This method adds one or more attributes to a Domain. This method does not add Generators to each Attribute; Generators should be added with the generatorAdd method.

API Attribute Naming Convention

Exceptions

The following GenRocket exceptions may be thrown by this method:

  • If the runtime instance is currently running another Scenario.
  • If the requested domainName is not found.

Runtime Method Signature

Use this method signature when directly accessing the GenRocket binary runtime.

public void attributesAdd(String domainName, List<String> attributeNames)

REST/Socket Payload Request

Use this API JSON request payload when making an API call to the GenRocket REST or Socket Engine.

{
  "interfaceType": "Manual",
  "methodName": "attributesAdd",
  "parameters": {
    "domainName": "",
    "attributeNames": [
       "attributeName1", 
       "attributeName2", 
       "attributeNameN"
    ]
  }
}

REST/Socket Payload Successful Payload Response

The API JSON response payload for this method will be empty.

{
  "responseType": "OK",
  "data": ""
}