Legacy Dev Forum Posts

 View Only

Sign Up

[CLI/PowerShell] dependencytracking/consumedresources API or documentation bug

  • 1.  [CLI/PowerShell] dependencytracking/consumedresources API or documentation bug

    Posted 06-05-2025 18:30

    MatejM | 2024-04-25 23:27:25 UTC | #1

    I've stumbled upon two issues today that I think can only be attributed to either a bug in the API itself, or the documentation being incorrect.

    Issue 1:

    No matter what I enter (even nothing) under --resourceType, when -objectType is set to IVRCONFIGURATION (which is listed as one of supported ones for both objectType and resourceType), this is the response I get:

    {
      message: "Invalid dependency object type 'ivrConfiguration' was specified.",
      code: 'architect.dependency.object.invalid.type',
      status: 400,
      messageWithParams: "Invalid dependency object type '{type}' was specified.",
      messageParams: { type: 'ivrConfiguration' },
      contextId: '5a909715-085a-420b-ab2a-3eba043e1794',
      details: [],
      errors: []
    }

    Example command: gc.exe architect dependencytracking consumedresources list --id "010b7a89-aa23-4d07-b9a2-0b52579076c2" --version 4.0 --objectType "IVRCONFIGURATION" --resourceType "SCHEDULEGROUP"

    Issue 2:

    Despite the fact that resourceType is supposed to be of type String[], whenever I pass in more than 1 value, this is the response I recieve

    {
      message: 'Value [SCHEDULEGROUP,QUEUE] is not valid for parameter [resourceType]. Allowable values are: ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, AUDIOCONNECTORBOT, BOTCONNECTORBOT, BOTCONNECTORINTEGRATION, BOTFLOW, BRIDGEACTION, COMMONMODULEFLOW, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, 
    DATATABLE, DIALOGENGINEBOT, DIALOGENGINEBOTVERSION, DIALOGFLOWAGENT, DIALOGFLOWCXAGENT, DIGITALBOTFLOW, EMAILROUTE, EMERGENCYGROUP, FLOWACTION, FLOWDATATYPE, FLOWMILESTONE, FLOWOUTCOME, GRAMMAR, GROUP, IMAGE, INBOUNDCALLFLOW, INBOUNDCHATFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, 
    INQUEUECALLFLOW, INQUEUEEMAILFLOW, INQUEUESHORTMESSAGEFLOW, IVRCONFIGURATION, KNOWLEDGEBASE, KNOWLEDGEBASEDOCUMENT, LANGUAGE, LEXBOT, LEXBOTALIAS, LEXV2BOT, LEXV2BOTALIAS, NLUDOMAIN, NUANCEMIXBOT, NUANCEMIXINTEGRATION, OAUTHCLIENT, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, STTENGINE, SURVEYFORM, SURVEYINVITEFLOW, SYSTEMPROMPT, TTSENGINE, TTSVOICE, USER, USERPROMPT, UTILIZATIONLABEL, VOICEFLOW, VOICEMAILFLOW, VOICESURVEYFLOW, WIDGET, WORKFLOW, WORKITEMFLOW',
      code: 'invalid.query.param.value',
      status: 400,
      details: [],
      errors: []
    }

    This is also a problem when using the JavaScript SDK - the following request will result in the same response

    let id = "vcf4r3ac-cdc6-153b-zd18-f73190a295c1"; // String | Consuming object ID
    let version = "8.0"; // String | Consuming object version
    let objectType = "INBOUNDCALLFLOW"; // String | Consuming object type.  Only versioned types are allowed here.
    let opts = {
        'resourceType': [ "SCHEDULEGROUP", "QUEUE" ], // [String] | Types of consumed resources to show
        'pageNumber': 1, // Number | Page number
        'pageSize': 25 // Number | Page size
    };
    
    let response = await architectApi.getArchitectDependencytrackingConsumedresources(id, version, objectType, opts);
    console.log('response: ', response);

    system | 2024-05-25 23:25:37 UTC | #2

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25934