startImport
Start importing data into an environment.
startImport(
input: AppEnvironmentImportInput
): AppEnvironmentImportPayload!
Example
- Query
- Variables
- Response
mutation ($input: AppEnvironmentImportInput) {
startImport(input: $input) {
app {
active
createdAt
id
name
organizationId
repo
serviceStatus
supportPackage
type
typeId
}
message
success
}
}
{
"input": {
"basename": "basename",
"environmentId": 42,
"id": 42,
"md5": "md5",
"searchReplace": [
{
"from": "from",
"to": "to"
}
],
"skipBackup": true,
"skipMaintenanceMode": true,
"url": "https://example.com",
"urlHeaders": [
{
"name": "A name",
"value": "value"
}
]
}
}
{
"data": {
"startImport": {
"app": {
"active": true,
"createdAt": "createdAt",
"id": 42,
"name": "A name",
"organizationId": 42,
"repo": "repo",
"serviceStatus": "serviceStatus",
"supportPackage": "supportPackage",
"type": "type",
"typeId": 42
},
"message": "message",
"success": true
}
}
}
Arguments
startImport.input ● AppEnvironmentImportInput input common
The import settings to apply.
Type
AppEnvironmentImportPayload object common
The result of starting an environment import.