Administrator
- Administrator
- All Products
/public/core/v3/undoCheckout
Field
| Type
| Required
| Description
|
---|---|---|---|
checkoutOperationId
| String
| No
| Checkout operation ID. If specified, all assets that were included in the checkout operation will revert to their original state.
|
objects
| List<Object>
| No
| Contains a list of all the objects to be included in the undo checkout operation.
|
id
| String
| Yes, if the object's path and type are not included and checkoutOperation ID is not included
| Include in the objects object.
ID of the object.
|
path
| List<String>
| Yes, if the object's ID is not included and checkoutOperation ID is not included
| Include in the objects object.
Full path of the object.
|
type
| String
| Yes, if the object's ID is not included and checkoutOperation ID is not included
| Include in the objects object.
Type of asset.
Can be one of the following types:
|
includeContainerAssets
| Boolean
| No
| Include in the objects object.
Applicable to projects and folders.
Whether all objects in a project or folder are included in the undo checkout operation. Use one of the following values:
Default is false.
|
objectSpecification
| List<Object>
| No
| Object specification for connection and runtime environments.
|
source
| Object
| Yes, if objectSpecification object is included
| Include in the objectSpecification object.
Contains information about the source object.
|
path
| List<String>
| Yes, if objectSpecification object is included
| Include in the source object.
Full path of the connection or runtime environment in the repository.
|
type
| String
| Yes, if objectSpecification object is included
| Include in the source object.
Asset type. Use one of the following values:
|
target
| Object
| Yes, if objectSpecification object is included
| Include in the objectSpecification object.
Contains information about the target object.
Include path and type or include ID. If path, type, and ID are included, ID takes precedence.
|
path
| List<String>
| Yes, if ID is not included
| Include in the target object.
Path of the connection or runtime environment.
Use with type.
|
type
| String
| Yes, if ID is not included
| Include in the target object.
Asset type.
Use with path.
Use one of the following values:
|
id
| String
| Yes, if path and type are not included
| Include in the target object.
ID of the target object.
|
additionalProviderFlags
| Collection <complex type>
| No
| Additional object specifications.
Use key-value pairs to specify additional object specifications, such as in-out parameter values and sequence generator values.
|
Field
| Type
| Description
|
---|---|---|
id
| String
| ID for the undo checkout operation.
|
status
| Object
| Status of the undo checkout operation.
|
state
| String
| Returned in the status object.
Initial state of the undo checkout operation. For a successful request, value will always be NOT_STARTED.
To see the status after the operation begins, use the
Getting the status of a source control operation resource.
|
message
| String
| Returned in the status object.
Descriptive status message for the undo checkout operation.
|
POST <baseApiUrl>/public/core/v3/undoCheckout Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "objects": [ { "id": "4gmWUVziA1qe7zXbyN1l6E" }, { "id": "4TjbmrAGrk2eal3DOwdIk8" } ] }
POST <baseApiUrl>/public/core/v3/undoCheckout Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "objects": [ { "path": ["Default","Test_Mapping1"], "type": "DTEMPLATE" }, { "path": ["Default","Test_Mapping2"], "type": "DTEMPLATE" } ] }
POST <baseApiUrl>/public/core/v3/undoCheckout Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "objects": [ { "id": "6wLjSK4tS4rdjKq5uGuC0T" } ], "objectSpecification":[ { "source": { "path":["ff"], "type":"Connection" }, "target": { "path":["target_connection"], "type":"Connection" } }, { "source": { "path": ["USW1MJ02YNFB"], "type": "AgentGroup" }, "target": { "id": "2ga6h3hRNZCf9Br0ZWB7EF" } } ] }
POST <baseApiUrl>/public/core/v3/undoCheckout Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "checkoutOperationId": "<checkout operation ID>" }
{ "id": "awRrziMMWXol7i42aTm1ih", "status": { "state": "NOT_STARTED", "message": "Initialized" } }