POST
/
customer-organizations
curl --request POST \
  --url https://eu.sequencehq.com/api/customer-organizations \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ownerId": "50af5191-05a3-42a5-802a-6b59091157af",
  "memberIds": [
    "e309e948-088e-4d77-b654-cd85498f1555",
    "50af5191-05a3-42a5-802a-6b59091157af"
  ]
}'
{
  "id": "c0dc4e79-ec52-4811-8cf5-addb2527915c",
  "owner": {
    "id": "50af5191-05a3-42a5-802a-6b59091157af",
    "name": "FinTech Solutions Inc."
  },
  "members": [
    {
      "id": "e309e948-088e-4d77-b654-cd85498f1555",
      "name": "Fintech Payment Processing"
    },
    {
      "id": "50af5191-05a3-42a5-802a-6b59091157af",
      "name": "Fintech Lending Services"
    }
  ]
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Body

application/json
ownerId
string
required

ID of the customer that will own the organization.

Example:

"50af5191-05a3-42a5-802a-6b59091157af"

memberIds
string[]
required

IDs of the customers who are members of this organization, excluding the owner. These are the children in a parent-child relationship. You can pass an empty array if they are not yet known.

Example:
[
  "e309e948-088e-4d77-b654-cd85498f1555",
  "50af5191-05a3-42a5-802a-6b59091157af"
]

Response

201
application/json
Created
id
string
required

Organization ID

Example:

"c0dc4e79-ec52-4811-8cf5-addb2527915c"

owner
object
required

ID of the customer that will own the organization.

Example:
{
  "id": "50af5191-05a3-42a5-802a-6b59091157af",
  "name": "FinTech Solutions Inc."
}
members
object[]
required

Members of the customer organization, excluding the owner. These are the children in a parent-child relationship.

ID of the customer that will own the organization.

Example:
[
  {
    "id": "e309e948-088e-4d77-b654-cd85498f1555",
    "name": "Fintech Payment Processing"
  },
  {
    "id": "50af5191-05a3-42a5-802a-6b59091157af",
    "name": "Fintech Lending Services"
  }
]