POST /corporate/subAccount

Create a new sub-account under a master account.

This endpoint will create a new sub-account under a master account

Options

Body
Request body with sub-account organization name

Request body which must comply to the following JSON Schema:

{
  "required" : [ "companyName", "email" ],
  "type" : "object",
  "properties" : {
    "companyName" : {
      "type" : "string",
      "description" : "Set the name of the sub-account company"
    },
    "email" : {
      "type" : "string",
      "description" : "Email address for the organization"
    },
    "language" : {
      "type" : "string",
      "description" : "Set the language of the sub-account",
      "enum" : [ "en", "fr", "it", "es", "pt", "de" ]
    },
    "timezone" : {
      "type" : "string",
      "description" : "Set the timezone of the sub-account"
    },
    "groupIds" : {
      "type" : "array",
      "description" : "Set the group(s) for the sub-account",
      "items" : {
        "type" : "string"
      }
    }
  },
  "example" : {
    "companyName" : "Test Sub-account",
    "email" : "test-sub@example.com",
    "timezone" : "Europe/Paris",
    "language" : "en",
    "groupIds" : [ "5f8f8c3b5f56a02d4433b3a7", "5f8f8c3b5f56a02d4433b3a8" ]
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.