Skip Headers

Oracle® Health Sciences ClearTrial Cloud Service Web Services API User Guide Release 5.0 Part Number E39879-01 |
Home | Book List | Contents | Contact Us

Previous | Next
| View PDF

# 8 Portfolio Resource API

This ClearTrial Web Services API returns information about portfolio resources from ClearTrial applications.

## 8.1 Get Portfolios

Lists all the portfolios accessible to the current user for a given customer ID.

Method: GET

URL: /cleartrial-ws/portfolios

Sample output in JSON:

    {
     "portfolio": [
        {
         "id": 10201,
         "name":"Sample Portfolio 1",
         "code":"Sample Portfolio 1 short description",
         "description":"Sample Portfolio 1 long description",
         "createdBy":"administrator",
         "createdDate":"02-May-2011",
         "lastModifiedBy":"administrator",
         "lastModifiedDate":"02-May-2011",
         "plan": [
            {
             "id": 12001,
             "url":"/cleartrial-ws/plans/12001"
            },
            ...
            ...
          ],
         "url":"/cleartrial-ws/portfolios/10201"
        },
        {
         "id": 10202,
         "name":"Sample Portfolio 2",
          ...
          ...
        }
        ...
        ...
      ]
    }

Sub-Resources: None

## 8.2 Get Portfolio

Obtains the representation for a specified portfolio.

Method: GET

URL: /cleartrial-ws/portfolios/{portfolioID}

Sample output in JSON:

    {
     "portfolio": {
       "id": 10201,
       "name":"Sample Portfolio 1",
       "code":"Sample Portfolio 1 short description",
       "description":"Sample Portfolio 1 long description",
       "createdBy":"administrator",
       "createdDate":"02-May-2011",
       "lastModifiedBy":"administrator",
       "lastModifiedDate":"02-May-2011",
       "plan": [
          {
           "id": 12001,
           "url":"/cleartrial-ws/plans/12001"
          },
          {
            ...
            ...
          }
          ...
          ...
        ],
       "url":"/cleartrial-ws/portfolios/10201"
      }
    }

Sub-Resources: None