|
8341 | 8341 | ], |
8342 | 8342 | "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.ChatApi();\n\nlet userId = \"userId_example\"; // String | userId\nlet pinnedMessageId = \"pinnedMessageId_example\"; // String | pinnedMessageId\n\n// Remove a pinned message from a 1on1\napiInstance.deleteChatsUserMessagesPin(userId, pinnedMessageId)\n .then(() => {\n console.log(\"deleteChatsUserMessagesPin returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling deleteChatsUserMessagesPin\");\n console.error(err);\n });" |
8343 | 8343 | }, |
| 8344 | + "deletechatsusersmesettings": { |
| 8345 | + "operationId": "deletechatsusersmesettings", |
| 8346 | + "functionName": "deleteChatsUsersMeSettings", |
| 8347 | + "signature": "deleteChatsUsersMeSettings()", |
| 8348 | + "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.ChatApi();\n\n// Delete a user's chat settings\napiInstance.deleteChatsUsersMeSettings()\n .then(() => {\n console.log(\"deleteChatsUsersMeSettings returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling deleteChatsUsersMeSettings\");\n console.error(err);\n });" |
| 8349 | + }, |
8344 | 8350 | "getchatsmessage": { |
8345 | 8351 | "operationId": "getchatsmessage", |
8346 | 8352 | "functionName": "getChatsMessage", |
|
8793 | 8799 | ], |
8794 | 8800 | "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.ChatApi();\n\nlet userId = \"userId_example\"; // String | userId\nlet body = {}; // Object | Pinned Message Ids\n\n// Add pinned messages for a 1on1, up to a maximum of 5 pinned messages\napiInstance.postChatsUserMessagesPins(userId, body)\n .then(() => {\n console.log(\"postChatsUserMessagesPins returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling postChatsUserMessagesPins\");\n console.error(err);\n });" |
8795 | 8801 | }, |
| 8802 | + "postchatsusersmesettings": { |
| 8803 | + "operationId": "postchatsusersmesettings", |
| 8804 | + "functionName": "postChatsUsersMeSettings", |
| 8805 | + "signature": "postChatsUsersMeSettings(body)", |
| 8806 | + "parameters": [ |
| 8807 | + { |
| 8808 | + "name": "body", |
| 8809 | + "type": "Object", |
| 8810 | + "required": "true" |
| 8811 | + } |
| 8812 | + ], |
| 8813 | + "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.ChatApi();\n\nlet body = {}; // Object | \n\n// Create a user's chat settings\napiInstance.postChatsUsersMeSettings(body)\n .then(() => {\n console.log(\"postChatsUsersMeSettings returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling postChatsUsersMeSettings\");\n console.error(err);\n });" |
| 8814 | + }, |
8796 | 8815 | "putchatsmessagereactions": { |
8797 | 8816 | "operationId": "putchatsmessagereactions", |
8798 | 8817 | "functionName": "putChatsMessageReactions", |
|
15840 | 15859 | "required": "true" |
15841 | 15860 | } |
15842 | 15861 | ], |
15843 | | - "return": "DataSchema", |
| 15862 | + "return": "DataSchemaListing", |
15844 | 15863 | "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.ExternalContactsApi();\n\nlet schemaId = \"schemaId_example\"; // String | Schema ID\n\n// Get all versions of an external contact's schema\napiInstance.getExternalcontactsContactsSchemaVersions(schemaId)\n .then((data) => {\n console.log(`getExternalcontactsContactsSchemaVersions success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getExternalcontactsContactsSchemaVersions\");\n console.error(err);\n });" |
15845 | 15864 | }, |
15846 | 15865 | "getexternalcontactscontactsschemas": { |
|
16345 | 16364 | "required": "true" |
16346 | 16365 | } |
16347 | 16366 | ], |
16348 | | - "return": "DataSchema", |
| 16367 | + "return": "DataSchemaListing", |
16349 | 16368 | "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.ExternalContactsApi();\n\nlet schemaId = \"schemaId_example\"; // String | Schema ID\n\n// Get all versions of an external organization's schema\napiInstance.getExternalcontactsOrganizationsSchemaVersions(schemaId)\n .then((data) => {\n console.log(`getExternalcontactsOrganizationsSchemaVersions success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getExternalcontactsOrganizationsSchemaVersions\");\n console.error(err);\n });" |
16350 | 16369 | }, |
16351 | 16370 | "getexternalcontactsorganizationsschemas": { |
|
44749 | 44768 | "required": "true" |
44750 | 44769 | } |
44751 | 44770 | ], |
44752 | | - "return": "DataSchema", |
| 44771 | + "return": "DataSchemaListing", |
44753 | 44772 | "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 schemaId = \"schemaId_example\"; // String | Schema ID\n\n// Get all versions of a schema\napiInstance.getTaskmanagementWorkitemsSchemaVersions(schemaId)\n .then((data) => {\n console.log(`getTaskmanagementWorkitemsSchemaVersions success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getTaskmanagementWorkitemsSchemaVersions\");\n console.error(err);\n });" |
44754 | 44773 | }, |
44755 | 44774 | "gettaskmanagementworkitemsschemas": { |
|
53199 | 53218 | "return": "WfmHistoricalShrinkageResponse", |
53200 | 53219 | "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.WorkforceManagementApi();\n\nlet jobId = \"jobId_example\"; // String | jobId\n\n// Request to fetch the status of the historical shrinkage query\napiInstance.getWorkforcemanagementShrinkageJob(jobId)\n .then((data) => {\n console.log(`getWorkforcemanagementShrinkageJob success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getWorkforcemanagementShrinkageJob\");\n console.error(err);\n });" |
53201 | 53220 | }, |
| 53221 | + "getworkforcemanagementteamadherence": { |
| 53222 | + "operationId": "getworkforcemanagementteamadherence", |
| 53223 | + "functionName": "getWorkforcemanagementTeamAdherence", |
| 53224 | + "signature": "getWorkforcemanagementTeamAdherence(teamId)", |
| 53225 | + "parameters": [ |
| 53226 | + { |
| 53227 | + "name": "teamId", |
| 53228 | + "type": "String", |
| 53229 | + "required": "true" |
| 53230 | + } |
| 53231 | + ], |
| 53232 | + "return": "UserScheduleAdherenceListing", |
| 53233 | + "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.WorkforceManagementApi();\n\nlet teamId = \"teamId_example\"; // String | The ID of the team\n\n// Get a list of user schedule adherence records for the requested team\napiInstance.getWorkforcemanagementTeamAdherence(teamId)\n .then((data) => {\n console.log(`getWorkforcemanagementTeamAdherence success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getWorkforcemanagementTeamAdherence\");\n console.error(err);\n });" |
| 53234 | + }, |
53202 | 53235 | "getworkforcemanagementtimeoffbalancejob": { |
53203 | 53236 | "operationId": "getworkforcemanagementtimeoffbalancejob", |
53204 | 53237 | "functionName": "getWorkforcemanagementTimeoffbalanceJob", |
|
0 commit comments