Put Service Provider
Creates a new service provider in ClearTrial. This operation requires the following information about the new service provider:
-
Unique name (Required)
-
Description
-
Billing rate currency ID (Required)
-
Back-office billing rate location ID (Required)
-
Provider type ID (Required)
The following provider type IDs are available:
Table 9-1 Provider Type IDs
Provider Type | ID | Who Can Create |
---|---|---|
Sponsor |
2 |
CROs |
CRO |
3 |
CROs and sponsors |
Method: PUT
URL: /cleartrial-ws/serviceProviders
Sample input in JSON:
{ "serviceProvider": { "name": "Sample service provider", "providerTypeId": "3", "description": "Sample description", "billingRatesCurrencyId": "840", "billingRateLocationId": "100" } }
Upon successful execution of the request, the server returns an HTTP 200 code and information about the newly created service provider as shown below.
{ "serviceProvider": { "id": 31205, "name": "Sample service provider", "description": "Sample description", "createdDate": "05-Jun-2017 11:47:43 CDT", "lastModifiedDate": "05-Jun-2017 11:47:43 CDT", "providerType": { "id": 3, "name": "Contract Research Organization", "code": "CRO" }, "billingRatesCurrency": { "id": 840, "name": "US Dollar", "code": "USD" }, "billingRateLocation": { "id": 100, "name": "USA", "code": "US", "description": "USA" }, "url": "/cleartrial-ws/serviceProviders/31205" } }
If an error occurs during the request, the server returns an appropriate HTTP code and some information about the error.
For example, if there are validation errors in the data provided via the PUT request, the HTTP response code 400 is returned along with the following message:
{ "error": { "errorCode": "Bad Request", "message": "The following validation errors occurred: [ billingRateLocationId may not be null ] [ billingRatesCurrencyId may not be null ] [ name is either missing or not a legal name ] [ providerTypeId may not be null ] " } }
Parent topic: Service Provider Resource API