|
6918 | 6918 | } |
6919 | 6919 | ], |
6920 | 6920 | "return": "AuthzDivisionCursorListing", |
6921 | | - "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ObjectsApi();\n\nlet opts = { \n \"before\": \"before_example\", // String | The cursor that points to the start of the set of entities that has been returned.\n \"after\": \"after_example\", // String | The cursor that points to the end of the set of entities that has been returned.\n \"pageSize\": \"pageSize_example\", // String | Number of entities to return. Maximum of 200.\n \"id\": [\"id_example\"], // [String] | Optionally request specific divisions by their IDs\n \"name\": \"name_example\" // String | Optionally request specific divisions by division name\n};\n\n// Retrieve a list of all divisions defined for the organization with cursor\napiInstance.getAuthorizationDivisionsQuery(opts)\n .then((data) => {\n console.log(`getAuthorizationDivisionsQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAuthorizationDivisionsQuery\");\n console.error(err);\n });" |
| 6921 | + "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ObjectsApi();\n\nlet opts = { \n \"before\": \"before_example\", // String | The cursor that points to the start of the set of entities that has been returned.\n \"after\": \"after_example\", // String | The cursor that points to the end of the set of entities that has been returned.\n \"pageSize\": \"25\", // String | Page size (max 200, default 25)\n \"id\": [\"id_example\"], // [String] | Optionally request specific divisions by their IDs\n \"name\": \"name_example\" // String | Optionally request specific divisions by division name\n};\n\n// Retrieve a list of all divisions defined for the organization with cursor\napiInstance.getAuthorizationDivisionsQuery(opts)\n .then((data) => {\n console.log(`getAuthorizationDivisionsQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAuthorizationDivisionsQuery\");\n console.error(err);\n });" |
6922 | 6922 | }, |
6923 | 6923 | "getauthorizationdivisionspermittedme": { |
6924 | 6924 | "operationId": "getauthorizationdivisionspermittedme", |
|
11704 | 11704 | "return": "MessageConversation", |
11705 | 11705 | "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\nlet conversationId = \"conversationId_example\"; // String | conversationId\n\n// Get message conversation\napiInstance.getConversationsMessage(conversationId)\n .then((data) => {\n console.log(`getConversationsMessage success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getConversationsMessage\");\n console.error(err);\n });" |
11706 | 11706 | }, |
| 11707 | + "getconversationsmessagecommunicationmessagesmedia": { |
| 11708 | + "operationId": "getconversationsmessagecommunicationmessagesmedia", |
| 11709 | + "functionName": "getConversationsMessageCommunicationMessagesMedia", |
| 11710 | + "signature": "getConversationsMessageCommunicationMessagesMedia(conversationId, communicationId, status, pageNumber, pageSize)", |
| 11711 | + "parameters": [ |
| 11712 | + { |
| 11713 | + "name": "conversationId", |
| 11714 | + "type": "String", |
| 11715 | + "required": "true" |
| 11716 | + }, |
| 11717 | + { |
| 11718 | + "name": "communicationId", |
| 11719 | + "type": "String", |
| 11720 | + "required": "true" |
| 11721 | + }, |
| 11722 | + { |
| 11723 | + "name": "status", |
| 11724 | + "type": "String", |
| 11725 | + "required": "false" |
| 11726 | + }, |
| 11727 | + { |
| 11728 | + "name": "pageNumber", |
| 11729 | + "type": "Number", |
| 11730 | + "required": "false" |
| 11731 | + }, |
| 11732 | + { |
| 11733 | + "name": "pageSize", |
| 11734 | + "type": "Number", |
| 11735 | + "required": "false" |
| 11736 | + } |
| 11737 | + ], |
| 11738 | + "return": "MessageMediaListing", |
| 11739 | + "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\nlet conversationId = \"conversationId_example\"; // String | conversationId\nlet communicationId = \"communicationId_example\"; // String | communicationId\nlet opts = { \n \"status\": \"status_example\", // String | The status on which to filter the response.\n \"pageNumber\": 1, // Number | Page number\n \"pageSize\": 25 // Number | Page size\n};\n\n// Get message media list by status\napiInstance.getConversationsMessageCommunicationMessagesMedia(conversationId, communicationId, opts)\n .then((data) => {\n console.log(`getConversationsMessageCommunicationMessagesMedia success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getConversationsMessageCommunicationMessagesMedia\");\n console.error(err);\n });" |
| 11740 | + }, |
11707 | 11741 | "getconversationsmessagecommunicationmessagesmediamediaid": { |
11708 | 11742 | "operationId": "getconversationsmessagecommunicationmessagesmediamediaid", |
11709 | 11743 | "functionName": "getConversationsMessageCommunicationMessagesMediaMediaId", |
|
28730 | 28764 | "required": "false" |
28731 | 28765 | } |
28732 | 28766 | ], |
28733 | | - "return": "LearningModulesDomainEntityListing", |
| 28767 | + "return": "LearningModuleList", |
28734 | 28768 | "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet opts = { \n \"isArchived\": false, // Boolean | Archive status\n \"types\": [\"types_example\"], // [String] | Specifies the module types. Informational, AssessedContent and Assessment are deprecated\n \"pageSize\": 25, // Number | Page size\n \"pageNumber\": 1, // Number | Page number\n \"sortOrder\": \"ascending\", // String | Sort order\n \"sortBy\": \"name\", // String | Sort by\n \"searchTerm\": \"searchTerm_example\", // String | Search Term (searchable by name)\n \"expand\": [\"expand_example\"], // [String] | Fields to expand in response(case insensitive)\n \"isPublished\": \"Any\", // String | Specifies if only the Unpublished (isPublished is False) or Published (isPublished is True) modules are returned. If isPublished is Any or omitted, both types are returned\n \"statuses\": [\"statuses_example\"], // [String] | Specifies the module statuses to filter by\n \"externalIds\": [\"externalIds_example\"] // [String] | Specifies the module external IDs to filter by. Only one ID is allowed\n};\n\n// Get all learning modules of an organization\napiInstance.getLearningModules(opts)\n .then((data) => {\n console.log(`getLearningModules success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningModules\");\n console.error(err);\n });" |
28735 | 28769 | }, |
28736 | 28770 | "getlearningmodulesassignments": { |
|
46052 | 46086 | "required": "true" |
46053 | 46087 | } |
46054 | 46088 | ], |
46055 | | - "return": "WorkitemWrapup", |
46056 | | - "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.TaskManagementApi();\n\nlet workitemId = \"workitemId_example\"; // String | The ID of the Workitem.\nlet userId = \"userId_example\"; // String | The ID of the user\nlet body = {}; // Object | Request body to add/remove a wrapup code for a workitem\n\n// Add/Remove a wrapup code for a given user in a workitem.\napiInstance.patchTaskmanagementWorkitemUserWrapups(workitemId, userId, body)\n .then((data) => {\n console.log(`patchTaskmanagementWorkitemUserWrapups success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchTaskmanagementWorkitemUserWrapups\");\n console.error(err);\n });" |
| 46089 | + "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.TaskManagementApi();\n\nlet workitemId = \"workitemId_example\"; // String | The ID of the Workitem.\nlet userId = \"userId_example\"; // String | The ID of the user\nlet body = {}; // Object | Request body to add/remove a wrapup code for a workitem\n\n// Add/Remove a wrapup code for a given user in a workitem.\napiInstance.patchTaskmanagementWorkitemUserWrapups(workitemId, userId, body)\n .then(() => {\n console.log(\"patchTaskmanagementWorkitemUserWrapups returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchTaskmanagementWorkitemUserWrapups\");\n console.error(err);\n });" |
46057 | 46090 | }, |
46058 | 46091 | "patchtaskmanagementworkitemusersmewrapups": { |
46059 | 46092 | "operationId": "patchtaskmanagementworkitemusersmewrapups", |
|
46071 | 46104 | "required": "true" |
46072 | 46105 | } |
46073 | 46106 | ], |
46074 | | - "return": "WorkitemWrapup", |
46075 | | - "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.TaskManagementApi();\n\nlet workitemId = \"workitemId_example\"; // String | The ID of the Workitem.\nlet body = {}; // Object | Request body to add/remove the wrapup code for workitem\n\n// Add/Remove a wrapup code for the current user in a workitem.\napiInstance.patchTaskmanagementWorkitemUsersMeWrapups(workitemId, body)\n .then((data) => {\n console.log(`patchTaskmanagementWorkitemUsersMeWrapups success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchTaskmanagementWorkitemUsersMeWrapups\");\n console.error(err);\n });" |
| 46107 | + "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.TaskManagementApi();\n\nlet workitemId = \"workitemId_example\"; // String | The ID of the Workitem.\nlet body = {}; // Object | Request body to add/remove the wrapup code for workitem\n\n// Add/Remove a wrapup code for the current user in a workitem.\napiInstance.patchTaskmanagementWorkitemUsersMeWrapups(workitemId, body)\n .then(() => {\n console.log(\"patchTaskmanagementWorkitemUsersMeWrapups returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchTaskmanagementWorkitemUsersMeWrapups\");\n console.error(err);\n });" |
46076 | 46108 | }, |
46077 | 46109 | "patchtaskmanagementworkitemsbulkaddjob": { |
46078 | 46110 | "operationId": "patchtaskmanagementworkitemsbulkaddjob", |
|
0 commit comments