Organization

Organization operations

get

List organizations, subject to attribute search criteria.

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Query parameters
$limitnumberOptional

The number of records to be returned.

Default: 100
$skipnumberOptional

The number of records to be skipped for pagination.

Default: 0
$orderstringOptional

The order of the records. The result can be sorted by multiple attributes separated by a comma (,). Examples; name name asc name desc name,createdAt desc

$withstringOptional

Load related entities as objects.

attrib_namestringOptional

Filter records by attributes. The result can be filtered by any attribute of the entity. All request parameters not starting with $ are automatically used as a filter condition.

  • Extended filtering options are also available. See the table below.
  • Filter parameters that do not belong to the entity are silently ignored.
  • ISO-8601 formats are accepted for the date fields. The timezone will be set to UTC if not provided.
  • The separator for in and notin modifiers is the pipe character (|). Pipe characters can be escaped with a backslash in front of it.
  • Concat Like is to search for a string in two or more fields. It is only supported for JSON fields.
Description GET Request Example
Exact Match name=john
Not Equals (Exact Match) name:ne=john
Is Null name=null
Is Not Null name:ne=null
Greater Than age:gt=5, birth:gt=1977-10-22T22:04:00
Greater Than or Equal To age:gte=5, birth:gte=1977-10-22T22:04:00
Less Than age:lt=3, birth:lt=2000-01-01T00:00:00
Less Than or Equal To age:lte=3, birth:lte=2000-01-01T00:00:00
Between age:bt=3,5, birth:bt=1977-10-22T22:04:00,2000-01-01T00:00:00
In status:in=value 1|value 2|value 3
Not In status:notin=value 1|value 2|value 3
Like name:like=%john%
Not Like name:notlike=%john%
Concat Like(Only for JSON fields) firstName,lastName:concatlike=full name
Responses
chevron-right
200

OK

application/json
get
/organization
200

OK

post

Create a new organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Body
namestringRequired

Name of the organization

descriptionstringOptional

Description of the organization

citystringOptional

City where the organization is located

statestringOptional

State where the organization is located

countrystringOptional

Country where the organization is located

timezonestringOptional

Timezone where the organization is located

emailstringOptional

Email of the organization

addressstringOptional

Address of the organization

Responses
post
/organization
201

Created

No content

get

Search organizations by name

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Query parameters
namestringRequired
Responses
chevron-right
200

OK

application/json
get
/search/organization
200

OK

get

Read a organization by ID

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Path parameters
idstringRequired

Unique ID of the organization to get

Responses
chevron-right
200

OK

application/json
get
/organization/{id}
patch

Update an existing organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

body
Path parameters
idstringRequired

Unique ID of the organization to get

Header parameters
if-unmodified-sincestringOptional

last update time to make sure request data is not outdated and does not overwrite any data

Responses
chevron-right
200

OK

application/json
patch
/organization/{id}
post

Invite someone to an organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Body
organizationstringOptional

ID of organization to be joined

emailstringOptional

E-mail of the invitee

rolesstring[]Optional

Roles of the invited user

Responses
post
/invitation

No content

get

Display an invitation

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Responses
chevron-right
200

Returns invitation

No content

get
/invitation/{id}
200

Returns invitation

No content

delete

Delete an invitation to join an organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Responses
chevron-right
200

Invitation deleted.

No content

delete
/invitation/{id}

No content

post

Join an organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Responses
post
/invitation/{id}/accept

No content

post

Decline an invitation to join an organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Responses
chevron-right
200

Invitation declined

No content

post
/invitation/{id}/decline

No content

post

Invite one or more members to an organization (batch support, organization-scoped apps only, member role only)

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Path parameters
idstringRequired

ID of the organization

Body
Responses
post
/organization/{id}/invite-member
delete

Cancel/delete a pending invitation (organization-scoped apps only)

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Path parameters
idstringRequired

ID of the organization

invitationIdstringRequired

ID of the invitation to delete

Responses
chevron-right
200

Invitation deleted successfully

application/json
delete
/organization/{id}/invitation/{invitationId}
get

Read the members of organization by ID

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Path parameters
idstringRequired

Unique ID of the organization to get

Query parameters
withInvites,stringOptional

send 1 to fetch invites as well

Responses
chevron-right
200

OK

application/json
Responseany
get
/organization/{id}/members

No content

delete

Remove member from organization.

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

delete
/organization/{id}/members/{memberId}
post

Remove member from organization (for organization apps).

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

post
/organization/{id}/member/{memberId}/remove
post

Leave organization.

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

post
/organization/leave
get

Exports the contacts, transactions, surveys and resources data of given organization

Authorizations
AuthorizationstringRequired

A registered Nexus211 app can use Basic Auth method to authenticate itself. The username is the app's Client ID and the password is Client Secret.

Responses
chevron-right
200

OK,

application/json
get
/export/organization/{id}/json

Last updated