Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Save below "environment" and "taxonomyConfig" in local storage before initialize above library. (this need to change as input to a library) / Default to configuration is available.

    Code Block
             environment =  {
                     frameworkName: string,   
                     channelId: string,
                     authToken: string,
                     isApprovalRequired:  boolen  // set default to false,
              }
    
             taxonomyConfig = {
                        frameworkId: string,
                        config: [
                            {
                                index:number,
                                category:string,
                                icon: 'string',
                                color: 'string'
                            }
                        ]
            }

...

{{frameworkId}} – Framework identifier from the target environment. 

{{categoryId}} - Category code from the selected object group. {{newUUID}} - provide newly generated UUID value from client. 

Code Block
curl --location --request POST 'https://{{domain}}/api/framework/v1/term/create?framework={{frameworkId}}&category={{categoryId}}' \ 

--header 'Content-Type: application/json' \ 

--header 'Authorization: Bearer {{apiKey}}' \ 

--data-raw '{ 

    "request": { 

        "term": { 

            "code": "{{newUUID}}", 

            "name": "Noting and Drafting", 

            "description": "Draft and analyse a note, in order to move a proposal for decision making based on the availability of evidence and existing rules and precedents", 

            "category": "{{categoryId}}", 

            "status": "Draft", 

            "parents": [ 

                { 

                    "identifier": "{{frameworkId}}_{{categoryId}}" 

                } 

            ], 

           “approvalStatus" : “Draft”, 

            "additionalProperties": { 

                "competencyType": "Domain", 

                "competencyArea": "Office Management", 

                "sourceId": "CID02755" 

            } 

        } 

    } 

}' 

...