CognitiveX Docs
SDK

updateMemberRole

Function from @cognitivx/api-client

updateMemberRole

Kind: Function Source: packages/api-client/src/endpoints/orgs.ts:111 Generated from the TypeScript source for @cognitivx/api-client.

Signature

updateMemberRole(id, userId, body)

Parameters

[
  {
    "name": "id",
    "type": {
      "type": "intrinsic",
      "name": "string"
    },
    "summary": ""
  },
  {
    "name": "userId",
    "type": {
      "type": "intrinsic",
      "name": "string"
    },
    "summary": ""
  },
  {
    "name": "body",
    "type": {
      "type": "reflection",
      "declaration": {
        "id": 508,
        "name": "__type",
        "variant": "declaration",
        "kind": 65536,
        "flags": {},
        "children": [
          {
            "id": 509,
            "name": "role",
            "variant": "declaration",
            "kind": 1024,
            "flags": {},
            "sources": [
              {
                "fileName": "packages/api-client/src/endpoints/orgs.ts",
                "line": 114,
                "character": 10,
                "url": "https://github.com/ParsaBarati/CognitiveX/blob/1090be99c91b488bd57bc6c8e9230d568d32dad0/packages/api-client/src/endpoints/orgs.ts#L114"
              }
            ],
            "type": {
              "type": "union",
              "types": [
                {
                  "type": "literal",
                  "value": "admin"
                },
                {
                  "type": "literal",
                  "value": "member"
                }
              ]
            }
          }
        ],
        "groups": [
          {
            "title": "Properties",
            "children": [
              509
            ]
          }
        ]
      }
    },
    "summary": ""
  }
]

TypeDoc reflection

{
  "name": "updateMemberRole",
  "kind": "Function",
  "source": "packages/api-client/src/endpoints/orgs.ts:111"
}