Clarity

 View Only
  • 1.  REST API - For resources

    Posted Sep 21, 2021 10:27 AM
    Hi,

    I am trying to use REST API to create resources, I get an error that POST is not a supported method for resources.


    API-1034 : The method POST is not allowed for resource resources.


    Does anyone know if it is possible to create resources using REST API?

    I can use XOG but my other code is based on REST so trying to stick to one standard if possible.


  • 2.  RE: REST API - For resources

    Broadcom Employee
    Posted Sep 21, 2021 10:30 AM
    Yes only get is supported and we have it documented https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/clarity-project-and-portfolio-management-ppm-on-premise/15-9-3/reference/Clarity-REST-APIs/rest-api-documentation-for-authorized-developers.html 



    ------------------------------
    Thanks & Regards
    Suman Pramanik
    Sr. Principal Support Engineer | Customer Success & Support, Enterprise Software Division
    Broadcom
    ------------------------------



  • 3.  RE: REST API - For resources

    Posted Sep 21, 2021 10:50 AM
    Thank you for sharing the document, I was looking for such a list. Is there any plan to support the post method for the resources object?

    BTW, the patch method on resources is working/supported but the document doesn't reflect that.


  • 4.  RE: REST API - For resources

    Broadcom Employee
    Posted Sep 22, 2021 05:42 AM
    Hi Naman

    Yes the patch works and the documentation is not up to date and we will be working to update the same.

    Also if you need to see what method is supported you can use our describe API i.e http://clarity/ppm/rest/v1/describe/resources explains what HTTP methods are supported.

        "isRuleEnabled"false,
        "objectCode""resource",
        "capabilities": [
            "CAPABILITY_ASSOCIATION"
        ],
        "isFavoriteEnabled"false,
        "resourceBaseUrls": [
            "http://clarity/ppm/rest/v1/resources"
        ],
        "httpMethods": [
            "PATCH",
            "GET",
            "HEAD",
            "PUT"
        ],
        "_type""OBJECT",
        "description""The Resource Object",
        "resourceName""resources",
        "objectProperties": {
            "idAttribute""uniqueName",
            "contextAttribute""fullName"
        }


    ------------------------------
    Thanks & Regards
    Suman Pramanik
    Sr. Principal Support Engineer | Customer Success & Support, Enterprise Software Division
    Broadcom
    ------------------------------