Skip to main content

OrganizationsApi

MethodHTTP requestDescription
CreateOrganizationUsingPOSTPOST /api/web/v1/organizationsCreate an organization
CreateUserOrganizationAssociationUsingPOSTPOST /api/web/v1/organizations/{orgid}/users/{userid}Add user to organization
DeleteUserOrganizationAssociationUsingDELETEDELETE /api/web/v1/organizations/{orgid}/users/{userid}Remove user from organization
GetOrganizationUsingGETGET /api/web/v1/organizations/{id}Get an organization
OrganizationsPagedUsingPOSTPOST /api/web/v1/organizationspagedList a page of organizations
RemoveOrganizationUsingDELETEDELETE /api/web/v1/organizations/{id}Delete an organization
UpdateOrganizationUsingPUTPUT /api/web/v1/organizations/{id}Update an organization

CreateOrganizationUsingPOST

Organization CreateOrganizationUsingPOST (OrganizationParms organizationParms)

Create an organization

Create an organization. Caller requires the ORGANIZATIONS:ADD permission.

Using the CreateOrganizationUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
organizationParmsOrganizationParms

Return type

Organization

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

CreateUserOrganizationAssociationUsingPOST

void CreateUserOrganizationAssociationUsingPOST (string orgid, string userid)

Add user to organization

Add user to organization. Caller requires the ORGANIZATIONS:EDIT permission.

Example

Using the CreateUserOrganizationAssociationUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
orgidstringThe UUID of the organization.
useridstringThe UUID of the user to be added to the organization.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteUserOrganizationAssociationUsingDELETE

void DeleteUserOrganizationAssociationUsingDELETE (string orgid, string userid)

Remove user from organization

Remove user from organization. Caller requires the ORGANIZATIONS:EDIT permission.

Example

Using the DeleteUserOrganizationAssociationUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
orgidstringThe UUID of the organization.
useridstringThe UUID of the user to be remove from the organization.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

GetOrganizationUsingGET

Organization GetOrganizationUsingGET (string id)

Get an organization

Get the specified organization. Caller requires the ORGANIZATIONS:VIEW permission.

Example

Using the GetOrganizationUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the organization to be returned.

Return type

Organization

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

OrganizationsPagedUsingPOST

OrganizationPage OrganizationsPagedUsingPOST (SearchParms searchParms)

List a page of organizations

Returns organizations for the provided search parameters. Caller requires the ORGANIZATIONS:VIEW permission. The following searchByAttributes are supported:

  • displayName: a string value that indicates the display name of the organizations. Allowed operators are: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH.
  • name: a string value that indicates the name of the organizations. Allowed operators are: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH.

If you provide more than one search attribute, they are joined with an AND condition.

The orderByAttribute supports these attribute names: displayName, name.

Example

Using the OrganizationsPagedUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
searchParmsSearchParms

Return type

OrganizationPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

RemoveOrganizationUsingDELETE

void RemoveOrganizationUsingDELETE (string id)

Delete an organization

Delete the specified organization. Caller requires the ORGANIZATIONS:REMOVE permission.

Example

Using the RemoveOrganizationUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the organization to be removed.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UpdateOrganizationUsingPUT

Organization UpdateOrganizationUsingPUT (string id, OrganizationParms organizationParms)

Update an organization

Update the specified organization. Caller requires the ORGANIZATIONS:EDIT permission.

Example

Using the UpdateOrganizationUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the organization to be modified.
organizationParmsOrganizationParms

Return type

Organization

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-