Administrator
- Administrator
- All Products
/public/core/v3/loadState/<id>
Field
| Type
| Required
| Description
|
---|---|---|---|
name
| String
| Name of the loadState job.
Default name is job-<currentTimeInMilliseconds>
| |
importSpecification
| Complex type
| Used to specify the objects to include.
| |
includeObjects
| Collection<String>
| Include in the importSpecification object.
Objects to load.
If not specified, the load includes all states in the object states package.
If the specified object is a project, the load includes state of all objects that belong to the project and all dependent objects.
| |
objectSpecification
| Collection <complex type>
| Include in the importSpecification object.
Specifies the object properties.
| |
sourceObjectId
| String
| Yes
| Include in the objectSpecification object.
The container ID in the object states package file.
Required if objectSpecification is present.
|
targetObjectId
| String
| Yes
| Include in the objectSpecification object.
Used for Container to Container mapping.
Required if objectSpecification is present.
|
POST <baseApiUrl>/public/core/v3/loadState/2oZb7vFI2QQg4ncd4AyCGn HTTP/1.0 Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "name" : "stateImportJob", "importSpecification" : { "includeObjects" : ["iIVBNZSpUKFg4N6g2PKUox","ejZY66c19YUccBdbGwKG4P"], "objectSpecification" : [{ "sourceObjectId" : "iIVBNZSpUKFg4N6g2PKUox" }, { "sourceObjectId" : "5FA0DnMzeuDbYZnn3hdto9", "targetObjectId" : "5KgUiEkW95NkjLRRefWKiG" }] } }
Field
| Type
| Description
|
---|---|---|
Id
| String
| ID of the loadState job.
|
createTime
| String
| Time the loadState job was created.
|
updateTime
| String
| Last time the loadState job was updated.
|
name
| String
| Name of the loadState job.
|
startTime
| String
| Start time of the loadState job.
|
endTime
| String
| End time of the loadState job.
|
status
| Collection
| Status of the package upload.
|
state
| String
| Returned in the status object.
Load state for each individual object, such as IN PROGRESS, SUCCESS, FAILED, or SKIPPED.
|
message
| String
| Returned in the status object.
Job status message.
|
objects
| Collection
| Objects included in the loadState job and object level status.
|
sourceOrgId
| String
| Organization ID of the organization that created the object states package.
|
checksumValid
| Boolean
| Indicates whether the import package has valid checksum.
|
{ "id": "a7oaBNCyc8DdhxQD4mY4ul", "createTime": "2019-01-10T01:35:45.000Z", "updateTime": "2019-01-10T21:08:41.398Z", "name": "job-1547154520680", "startTime": "2019-01-10T21:08:41.389Z", "endTime": null, "status": { "state": "IN_PROGRESS", "message": "In Progress" }, "objects": null, "sourceOrgId": "2wy21a5fkUphzTVNKaPowg", "checksumValid": true }
{ "error": { "message": "Import request with identifier [a7oaBNCyc8DdhxQD4mY4u] doesnt exist.", "requestId": "9MopwrDFAOGbuMM9utiTqJ" } }