Organizations reference
Method signatures, parameters, responses and examples for organizations.
Use a configured server-side nirmos client from the quickstart. See the organizations guide for prerequisites and workflows. Example IDs and configured model names are placeholders; replace them with organization-visible resources before executing. Mutating calls change live resources.
HTTP calls reject with APIError subclasses on unsuccessful HTTP responses and may throw NetworkError, TimeoutError or RequestAbortedError. Signatures describe SDK values after response decoding; they are not raw HTTP envelopes. Backend validation, permissions and feature availability remain authoritative.
| Method | Transport |
|---|---|
organizations.roles.list | Control plane |
organizations.roles.create | Control plane |
organizations.roles.update | Control plane |
organizations.roles.delete | Control plane |
organizations.members.assignRoles | Control plane |
organizations.members.list | Control plane |
organizations.get | Control plane |
organizations.update | Control plane |
organizations.delete | Control plane |
organizations.invitations.list | Control plane |
organizations.invitations.create | Control plane |
organizations.data.delete | Control plane |
organizations.privacy.get | Control plane |
organizations.privacy.update | Control plane |
organizations.roles.list
List Organization Roles
Control plane: GET /v1/organizations/:id/roles.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: ac:read.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.organizations.roles.list(
id: string,
options?: RequestOptions | undefined
): Promise<Responses["listOrganizationRoles"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["listOrganizationRoles"].
Example
const result = await nirmos.organizations.roles.list("resource-id");organizations.roles.create
Create Organization Role
Control plane: POST /v1/organizations/:id/roles.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: ac:create.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.roles.create(
id: string,
body: Requests["createOrganizationRole"],
options?: RequestOptions | undefined
): Promise<Responses["createOrganizationRole"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
body | Yes | Requests["createOrganizationRole"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
role | Yes | string |
permission | Yes | { [key: string]: string[]; } |
Returns: Responses["createOrganizationRole"].
Example
const result = await nirmos.organizations.roles.create("resource-id", {
"role": "example",
"permission": {}
});organizations.roles.update
Update Organization Role
Control plane: PATCH /v1/organizations/:id/roles/:roleId.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: ac:update.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.roles.update(
id: string,
roleId: string,
body: Requests["updateOrganizationRole"],
options?: RequestOptions | undefined
): Promise<Responses["updateOrganizationRole"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
roleId | Yes | string |
body | Yes | Requests["updateOrganizationRole"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
permission | Yes | { [key: string]: string[]; } |
Returns: Responses["updateOrganizationRole"].
Response field table (same declared fields).
Example
const result = await nirmos.organizations.roles.update("resource-id", "role-id", {
"permission": {}
});organizations.roles.delete
Delete Organization Role
Control plane: DELETE /v1/organizations/:id/roles/:roleId.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: ac:delete.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.organizations.roles.delete(
id: string,
roleId: string,
options?: RequestOptions | undefined
): Promise<Responses["deleteOrganizationRole"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
roleId | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["deleteOrganizationRole"].
Example
const result = await nirmos.organizations.roles.delete("resource-id", "role-id");organizations.members.assignRoles
Assign Member Roles
Control plane: PATCH /v1/organizations/:id/members/:memberId/roles.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: member:update.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.members.assignRoles(
id: string,
memberId: string,
body: Requests["assignMemberRoles"],
options?: RequestOptions | undefined
): Promise<Responses["assignMemberRoles"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
memberId | Yes | string |
body | Yes | Requests["assignMemberRoles"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
roles | Yes | string[] |
Returns: Responses["assignMemberRoles"].
Response field table (same declared fields).
Example
const result = await nirmos.organizations.members.assignRoles("resource-id", "member-id", {
"roles": [
"example"
]
});organizations.members.list
List Organization Members
Control plane: GET /v1/organizations/:id/members.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: member:read.
REST endpoint, security and schemas · Related guide
Types: Queries · RequestOptions · Responses
nirmos.organizations.members.list(
id: string,
query?: Queries["listOrganizationMembers"] /* default: {} */,
options?: RequestOptions | undefined
): Promise<Responses["listOrganizationMembers"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
query | No | Queries["listOrganizationMembers"]; default {} |
options | No | RequestOptions | undefined |
Query fields
| Field | Required | Type |
|---|---|---|
limit | No | number | undefined |
cursor | No | string | undefined |
Returns: Responses["listOrganizationMembers"].
Example
const result = await nirmos.organizations.members.list("resource-id", {});organizations.get
Get Organization
Control plane: GET /v1/organizations/:id.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: organization:read.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.organizations.get(
id: string,
options?: RequestOptions | undefined
): Promise<Responses["getOrganization"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["getOrganization"].
Example
const result = await nirmos.organizations.get("resource-id");organizations.update
Update Organization
Control plane: PATCH /v1/organizations/:id.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: organization:update.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.update(
id: string,
body: Requests["updateOrganization"],
options?: RequestOptions | undefined
): Promise<Responses["updateOrganization"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
body | Yes | Requests["updateOrganization"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
name | Yes | string |
slug | Yes | string |
description | No | string | undefined |
Returns: Responses["updateOrganization"].
Response field table (same declared fields).
Example
const result = await nirmos.organizations.update("resource-id", {
"name": "Support",
"slug": "support"
});organizations.delete
Delete Organization
Control plane: DELETE /v1/organizations/:id.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: organization:delete.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.delete(
id: string,
body: Requests["deleteOrganization"],
options?: RequestOptions | undefined
): Promise<Responses["deleteOrganization"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
body | Yes | Requests["deleteOrganization"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
confirmation | Yes | string |
Returns: Responses["deleteOrganization"].
Response field table (same declared fields).
Behavior: Requires organization:delete, owner identity and a confirmation body. Verify the organization and deletion consequences before calling.
Example
const result = await nirmos.organizations.delete("resource-id", {
"confirmation": "organization-name"
});organizations.invitations.list
List Invitations
Control plane: GET /v1/organizations/:id/invitations.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: invitation:read.
REST endpoint, security and schemas · Related guide
Types: Queries · RequestOptions · Responses
nirmos.organizations.invitations.list(
id: string,
query?: Queries["listInvitations"] /* default: {} */,
options?: RequestOptions | undefined
): Promise<Responses["listInvitations"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
query | No | Queries["listInvitations"]; default {} |
options | No | RequestOptions | undefined |
Query fields
| Field | Required | Type |
|---|---|---|
limit | No | number | undefined |
cursor | No | string | undefined |
Returns: Responses["listInvitations"].
Example
const result = await nirmos.organizations.invitations.list("resource-id", {});organizations.invitations.create
Invite Member
Control plane: POST /v1/organizations/:id/invitations.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: invitation:create.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.invitations.create(
id: string,
body: Requests["inviteMember"],
options?: RequestOptions | undefined
): Promise<Responses["inviteMember"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
body | Yes | Requests["inviteMember"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
email | Yes | string |
role | Yes | string |
Returns: Responses["inviteMember"].
Example
const result = await nirmos.organizations.invitations.create("resource-id", {
"email": "teammate@example.com",
"role": "example"
});organizations.data.delete
Delete Workspace Data
Control plane: DELETE /v1/organizations/:id/privacy/data.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: privacy:deleteAcrossProjects.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.organizations.data.delete(
id: string,
options?: RequestOptions | undefined
): Promise<Responses["deleteWorkspaceData"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["deleteWorkspaceData"].
Example
const result = await nirmos.organizations.data.delete("resource-id");organizations.privacy.get
Get Organization Privacy
Control plane: GET /v1/organizations/:id/privacy.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: privacy:read.
REST endpoint, security and schemas · Related guide
Types: RequestOptions · Responses
nirmos.organizations.privacy.get(
id: string,
options?: RequestOptions | undefined
): Promise<Responses["getOrganizationPrivacy"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
options | No | RequestOptions | undefined |
Returns: Responses["getOrganizationPrivacy"].
Example
const result = await nirmos.organizations.privacy.get("resource-id");organizations.privacy.update
Update Organization Privacy
Control plane: PATCH /v1/organizations/:id/privacy.
Credentials: Personal API key with the required grants and organization membership. Review mutations also require assignment.
Required permission: privacy:update.
REST endpoint, security and schemas · Related guide
Types: Requests · RequestOptions · Responses
nirmos.organizations.privacy.update(
id: string,
body: Requests["updateOrganizationPrivacy"],
options?: RequestOptions | undefined
): Promise<Responses["updateOrganizationPrivacy"]>| Parameter | Required | Type / default |
|---|---|---|
id | Yes | string |
body | Yes | Requests["updateOrganizationPrivacy"] |
options | No | RequestOptions | undefined |
Request fields
| Field | Required | Type |
|---|---|---|
expectedRevision | Yes | number |
policy | Yes | Requests["updateOrganizationPrivacy"]["policy"] |
Returns: Responses["updateOrganizationPrivacy"].
Response field table (same declared fields).
Example
const result = await nirmos.organizations.privacy.update("resource-id", {
"expectedRevision": 1,
"policy": {
"version": 1,
"logging": {
"input": false,
"output": false,
"samplingPercent": 1,
"retentionSeconds": 1,
"redactionPaths": [
"example"
]
},
"usage": {
"retentionSeconds": 1
},
"audit": {
"retentionSeconds": 1
},
"images": {
"allowedModes": [
"transient"
],
"defaultMode": "transient",
"temporaryTtlSeconds": 1,
"maxTemporaryTtlSeconds": 1,
"persistentRetentionSeconds": null
},
"uploads": {
"allowed": false,
"retentionSeconds": null
},
"memory": {
"allowed": false,
"enabled": false,
"retentionSeconds": 1,
"episodeContent": false,
"evidenceContent": false
},
"history": {
"enabled": false,
"retentionSeconds": 1
},
"cache": {
"enabled": false,
"ttlSeconds": 1,
"shared": false
},
"knowledge": {
"allowed": false,
"retentionSeconds": null
},
"prompts": {
"allowed": false,
"retentionSeconds": null
},
"evaluations": {
"enabled": false,
"retentionSeconds": 1
},
"deferred": {
"enabled": false,
"retentionSeconds": 1
},
"allowedProviderIds": [
"allowed-provider-id"
]
}
});