Versions Compared

Key

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

...

URL

http://<host>:<port>/catissuecore/rest/ng/collection-protocols/1

or

http://<host>:<port>/catissuecore/rest/ng/collection-protocols/title=My Cp

or

http://<host>:<port>/catissuecore/rest/ng/collection-protocols/shortTitle=CpM

MethodPUT
Requestapplication/json
json

{

    "title":"My Cp",

    "shortTitle": "CpM",

    "startDate" :  "2014-07-23",

    "cpType": "Parent",

    "activityStatus": "Active",

    "endDate" : "2018-07-23",

    "investigator" : {"loginName" : "admin@admin.com", "domainName" :"catissue"},

    "cpSiteRoles" : {

        "siteName" : "My Site",

        "roleName" : "Scientist"

    }

}

Response

{

    "id" : 1,

    "title":"My Cp",

    "shortTitle": "CpM",

    "startDate" :  "2012-07-23",

    "endDate" : "2018-07-23",

    "cpType": "Parent",

    "startDate": null,

    "endDate": null,

    "activityStatus": "Active",

    "labelFormat": null,

    "derivedLabelFormat": null,

    "aliquotLabelFormat": null,

    "ppIdFormat": "",

    "investigator" : {"loginName" : "admin@admin.com", "domainName" :"catissue"},

    "cpSiteRoles" : {

        "id" : 1,

        "siteName" : "My Site",

        "roleName" : "Scientist"

    }

}

...