Create a service provider
post
/crmRestApi/resources/11.13.18.05/serviceProviders
Request
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ImposedEstimatedStartTime: string
(date-time)
Title:
Imposed Estimated Start TimeThe imposed estimated start time for the service state of a service provider. -
ImposedServiceStateCd: string
Title:
Imposed Service State CodeMaximum Length:64Default Value:NONEThe code indicating the imposed state of the service. -
PassiveBeaconURL: string
Title:
Passive Beacon URLMaximum Length:1000The URL at which the passive beacon is available. -
ProviderAPPKey: string
Maximum Length:
400The application key of the service provider. -
ProviderName(required): string
Title:
Provider NameMaximum Length:400The name of the service provider. -
services: array
Services
Title:
ServicesThe services resource is used view, create, update, and delete the details of services that are under the purview of a service provider.
Nested Schema : Services
Type:
arrayTitle:
ServicesThe services resource is used view, create, update, and delete the details of services that are under the purview of a service provider.
Show Source
Nested Schema : schema
Type:
Show Source
object-
EstimatedStartTime: string
(date-time)
Title:
Estimated Start TimeThe next estimated start time for the service state. -
LastAvailDate: string
(date-time)
Title:
Last Available DateThe date when the service was last available. -
ProviderId(required): integer
(int64)
Title:
Provider IDThe unique identifier of the service provider. -
serviceHistories: array
Service Histories
Title:
Service HistoriesThe service histories resource is used to view the historical information about the availability of a service. -
ServiceName(required): string
Title:
Service NameMaximum Length:400The name of the service. -
ServiceStateCd: string
Title:
Service State CodeMaximum Length:64Default Value:UNAVAILABLEThe code indicating the state of the service.
Nested Schema : Service Histories
Type:
arrayTitle:
Service HistoriesThe service histories resource is used to view the historical information about the availability of a service.
Show Source
Nested Schema : serviceProviders-services-serviceHistories-item-post-request
Type:
Show Source
object-
EstimatedStartTime: string
(date-time)
Title:
Estimated Start TimeThe next estimated start time for the service state. -
LastAvailDate: string
(date-time)
Title:
Last Available DateThe date when the service history was last available. -
ServiceId: integer
(int64)
Title:
Service IDThe unique identifier of the service to which the history belongs. -
ServiceStateCd: string
Title:
Service State CodeMaximum Length:64The code indicating the state of the service.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : serviceProviders-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the service provider. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the service provider was created. -
ImposedEstimatedStartTime: string
(date-time)
Title:
Imposed Estimated Start TimeThe imposed estimated start time for the service state of a service provider. -
ImposedServiceStateCd: string
Title:
Imposed Service State CodeMaximum Length:64Default Value:NONEThe code indicating the imposed state of the service. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the service provider was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the service provider. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the service provider. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PassiveBeaconURL: string
Title:
Passive Beacon URLMaximum Length:1000The URL at which the passive beacon is available. -
ProviderAPPKey: string
Maximum Length:
400The application key of the service provider. -
ProviderId: integer
(int64)
Title:
Provider IDRead Only:trueThe unique identifier of the service provider. -
ProviderName: string
Title:
Provider NameMaximum Length:400The name of the service provider. -
services: array
Services
Title:
ServicesThe services resource is used view, create, update, and delete the details of services that are under the purview of a service provider.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Services
Type:
arrayTitle:
ServicesThe services resource is used view, create, update, and delete the details of services that are under the purview of a service provider.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : serviceProviders-services-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the service. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the service was created. -
EstimatedStartTime: string
(date-time)
Title:
Estimated Start TimeThe next estimated start time for the service state. -
LastAvailDate: string
(date-time)
Title:
Last Available DateThe date when the service was last available. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the service was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the service. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the service. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProviderId: integer
(int64)
Title:
Provider IDThe unique identifier of the service provider. -
serviceHistories: array
Service Histories
Title:
Service HistoriesThe service histories resource is used to view the historical information about the availability of a service. -
ServiceId: integer
(int64)
Title:
Service IDRead Only:trueThe unique identifier of the service. -
ServiceName: string
Title:
Service NameMaximum Length:400The name of the service. -
ServiceStateCd: string
Title:
Service State CodeMaximum Length:64Default Value:UNAVAILABLEThe code indicating the state of the service.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Service Histories
Type:
arrayTitle:
Service HistoriesThe service histories resource is used to view the historical information about the availability of a service.
Show Source
Nested Schema : serviceProviders-services-serviceHistories-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64The user who created the service history. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueThe date when the service history was created. -
EstimatedStartTime: string
(date-time)
Title:
Estimated Start TimeThe next estimated start time for the service state. -
HistoryId: integer
(int64)
Title:
History IDRead Only:trueThe unique identifier of the service history. -
LastAvailDate: string
(date-time)
Title:
Last Available DateThe date when the service history was last available. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueThe date when the service history was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64The user who last updated the service history. -
LastUpdateLogin: string
Title:
Last Update LoginRead Only:trueMaximum Length:32The login details of the user who last updated the service history. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ServiceId: integer
(int64)
Title:
Service IDThe unique identifier of the service to which the history belongs. -
ServiceStateCd: string
Title:
Service State CodeMaximum Length:64The code indicating the state of the service.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- ImposedServiceStateCdLookup
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_SVC_IMP_SERVICE_STATE_CD
The list of values indicating the imposed state for a service,
The following properties are defined on the LOV link relation:- Source Attribute: ImposedServiceStateCd; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- services
-
Parameters:
- ProviderId:
$request.path.ProviderId
The services resource is used view, create, update, and delete the details of services that are under the purview of a service provider. - ProviderId:
Examples
The following example shows how to create a service provider by submitting a POST request on the REST resource using cURL.
cURL Command
curl -u <username:password> \ -X POST -d
@example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/serviceProviders
Example of Request Body
The following shows an example of the request body in JSON format.
{
"ProviderName": "Service Provider"
}Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"ProviderId": 300100123753001,
"CreationDate": "2017-11-15T10:55:15+00:00",
"CreatedBy": "SALES_ADMIN",
"LastUpdatedBy": "SALES_ADMIN",
"LastUpdateDate": "2017-11-15T10:55:15.006+00:00",
"LastUpdateLogin": "5E036AAEC4662B4AE0538E09F20A26E5",
"ProviderName": "Service Provider",
"PassiveBeaconURL": null,
"ImposedServiceStateCd": "NONE",
"ImposedEstimatedStartTime": null,
"ProviderAPPKey": null,
"links": [
...
]
}