Clarity PPM

Expand all | Collapse all

CA Clarity REST API Update Resource OBS

  • 1.  CA Clarity REST API Update Resource OBS

    Posted 02-21-2018 08:40 PM

    Dear Team,

     

    Has anyone been able to update Lookup values/ Department OBS values via REST API? Can you please help me with the JSON format in which the values have to be passed to update the Lookup or the OBS attribute? 

    I tried the below but it is not working:

     

    For updating Primary Role

     

    {"uniqueName":"R1"
    }
    ,"primaryRole":{"displayValue":"Architect","_type":"lookup","id":"5002005"}

     

    For Updating Department OBS:

     

    {"uniqueName":"R1"

    ,  "resdeptobs":{"displayValue":"VicTrack > Business Services","_type":"obs","id":"5000003"}

    }

     

    Any help is greatly appreciated.

    Thanks,

    V



  • 2.  Re: CA Clarity REST API Update Resource OBS

    Posted 02-22-2018 01:27 AM

    Hi Vasanth_RevIT 

     

    For updating lookup values, you just need to pass lookup's internal ID.

     

    For example i have a lookup based attribute (lkp_attribute) and lookup values as

    code: lkp_1 ; name: Lookup Value 1 

    code: lkp_2 ; name: Lookup Value 2 and so on.

    now we wants to update one of instance to lkp_2 then my payload will be as below:

     

    {"lkp_attribute": "lkp_2 " } 

     

    I have used this for updating Lookup however im not sure with OBS, you need to try OBS with its OBS id.

     

    Let me know if this work for you

     

    Regards,

    Prashank Singh



  • 3.  Re: CA Clarity REST API Update Resource OBS

    Posted 02-22-2018 10:24 PM

    Thank Prashank, I was able to update the lookup attributes with the above tip. However still unable to get the OBS updates working.

     

    Any other way?

     

    Thanks,

    Vasanth



  • 4.  Re: CA Clarity REST API Update Resource OBS

    Posted 02-23-2018 03:21 AM

    Never tried OBS update via REST API, try looking into CA PPM REST API Guide, from URL as http://samplehost:port//niku/rest/describe/index.html, may be you can find something to share to community.



  • 5.  Re: CA Clarity REST API Update Resource OBS

    Posted 02-26-2018 01:32 AM

    If we access the CA PPM Rest API page, it says the following:

     

    So, I would assume a mechanism to update OBS attributes is not yet present.