Perform a Deferred Action
/bcws/webresources/v1.0/deferredactions/{id}
Performs the specified deferred action.
Request
-
id(required): string
The ID of the deferred action, such as 0.0.0.1+-schedule+123123.
There's no request body for this operation.
Back to TopResponse
- application/xml
- application/json
201 Response
object
-
actionId(required): object
ResourceRef
-
actionName(required): string
The action's name.
-
actionStatus: integer
(int32)
The status of the deferred action. Possible values are:
- 0: Pending
- 1: Done
- 2: Error
- 3: Pending and undeletable
-
description: string
The deferred action's description.
-
extension: object
extension
The extended attributes.
-
isCollectionsAction: boolean
Whether the deferred action is for collections (true) or not (false).
-
scheduledDate(required): string
(date-time)
The date and time the deferred action is scheduled to occur.
-
serviceId: object
ResourceRef
-
serviceLogin: string
The service login information.
-
serviceType: string
The type of the service associated with the action.
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
object
500 Response
Examples
This example shows how to create a deferred action by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".
cURL Command
curl -X POST 'http://hostname:port/bcws/webresources/version/deferredactions/0.0.0.1+-schedule+255194'
where:
- hostname is the URL for the Billing Care REST server.
- port is the port for the Billing Care REST server.
- version is the version of the API you're using, such as v1.0.
Example of Response Body
This example shows the contents of the response body in JSON format.
{
"extension": null,
"actionId": {
"id": "0.0.0.1+-schedule+291704",
"uri": null
},
"actionName": null,
"serviceId": null,
"serviceType": null,
"scheduledDate": 1630393200000,
"serviceLogin": null,
"description": null,
"isCollectionsAction": null,
"actionStatus": 1
}