Organizations
SAM: Organizations (0.0.0)
Download OpenAPI specification:Download
API for interacting with organizations.
Get organizations
Returns a collection of organizations.
Authorizations:
BearerAuthBearerAuth
Responses
Response samples
- 200
- 400
- 500
Content type
application/json
{- "nodes": [
- {
- "id": "abe1cb12-02e6-4966-823b-82c942e278ef",
- "parentId": "00000000-0000-0000-0000-000000000000",
- "name": "Organization One",
- "isLegal": true,
- "externalId": "Organization_One"
}
]
}
Get organization
Returns the details of an organization.
Authorizations:
BearerAuthBearerAuth
path Parameters
nodeId required | string The unique ID of the organization. |
Responses
Response samples
- 200
- 404
- 500
Content type
application/json
{- "id": "abe1cb12-02e6-4966-823b-82c942e278ef",
- "parentId": "00000000-0000-0000-0000-000000000000",
- "name": "Organization One",
- "isLegal": true,
- "externalId": "Organization_One"
}
Create organization
Creates an organization.
Authorizations:
BearerAuth
Request Body schema: application/json
id required | string non-empty The client named unique ID of this organization. Used for parent - child hierarchy. |
parentId | string or null The named externalId of the parent to this organization. Used for parent - child hierarchy. |
name required | string non-empty The display name of the organization. |
isLegal | boolean
|
Responses
Request samples
- Payload
Content type
application/json
{- "id": "Organization_Two",
- "parentId": "Organization_One",
- "name": "Organization Two",
- "isLegal": true
}
Response samples
- 201
- 400
- 409
- 500
Content type
application/json
{- "id": "f3fce297-1ab4-4665-b927-51d3c46cb2c5",
- "parentId": "abe1cb12-02e6-4966-823b-82c942e278ef",
- "name": "Organization Two",
- "isLegal": true,
- "externalId": "Organization_Two"
}