- Administrator
- All Products
/public/core/v3/sourceControlAction/<action ID>
/public/core/v3/sourceControlAction/<action ID>?expand=objects
Field
| Type
| Description
|
|---|---|---|
id
| String
| ID of the source control operation.
|
action
| String
| Type of operation. Returns one of the following values:
|
commitHash
| String
| Unique commit hash. Included when the request is for checkin and pull operations.
|
startTime
| TimeStamp
| Start time of the operation.
|
endTime
| TimeStamp
| End time of the operation.
|
status
| Object
| Includes status information for the operation.
|
state
| String
| Included in the status object.
Status of the operation.
Returns one of the following values:
|
message
| String
| Included in the status object.
Descriptive status message for the operation.
|
objects
| List<Object>
| Lists each object included in the operation.
Returned when expand=objects is included in the URI.
|
target
| Object
| Included in the objects object.
Target object
|
id
| String
| Included in the target object.
ID of the target object.
|
path
| List<String>
| Included in the target object.
Complete path of the target object. For example, "Default" , "mt_MappingTask1".
|
type
| String
| Included in the target object.
Asset type of the target object.
|
status
| Object
| Included in the target object.
Status information for the target object.
|
state
| String
| Included in the status object.
Status of the operation.
Returns one of the following values:
|
message
| String
| Included in the status object.
Descriptive status message for the operation.
|
GET <baseApiUrl>/public/core/v3/sourceControlAction/<action ID>?expand=objects Content-type: application/json Accept: application/json INFA-SESSION-ID: <sessionId>
{ "id": "drLV4N8PFiuhAbcprrur2W", "action": "CHECKIN" "commitHash": "1234567abcdefg" "startTime": "2020-03-24T22:07:44Z", "endTime": "2020-03-24T22:08:14Z", "status": { "state": "SUCCESSFUL", "message": "Checkin Successful" }, "objects": [ { "target": { "path": [ "Versioned_Project", "Versioned_Folder", "Versioned Mapping - Rename" ], "id": "2CefbUuBsYxhG6eeKXvGmh", "type": "MAPPING" }, "status": { "state": "SUCCESSFUL", "message": "Checkin Successful" } }, { "target": { "path": [ "Versioned_Project", "Versioned_Folder", "Versioned Mapping - Edit" ], "id": "2CefbUuBsYxhG6eeKXvGmh", "type": "MAPPING" }, "status": { "state": "FAILED", "message": "Checkin Failed." } ] }
My project is linked to a git repo that is not the global source control repo. How can I get the status of a source control operation for a project-level git repo? The pullByCommitHash allows for the repoConnectionId, and it works great. Will this option be added to the API for the status of the source control operation?
Hi Ryan. You can get the status of a source control action for objects in global or project-level repositories using a sourceControlAction request. However, you can’t filter the request for a particular repository. You can contact Global Customer Support and ask them to log an enhancement request, if desired.