Services_createService

Create new package.

SecuritybearerAuth
Request
Request Body schema: application/json
packageId
required
string
appId
string
packageRevision
string
initParams
required
object
runtime
required
object (ServiceRuntime)
useUserJwt
required
boolean
botUserName
required
string
required
object (ServiceVersions)
moduleName
required
string
global
boolean
active
boolean
runExecutionAsProcess
required
boolean
executionTimeout
required
number <double>
drainTime
required
number <double>
onReset
required
string
Enum: "rerun" "failed"
name
required
string
projectId
required
string
driverId
required
string
id
required
string
version
required
string
url
required
string
createdAt
required
string <date-time>
updatedAt
required
string <date-time>
creator
required
string
maxAttempts
number <double>
secrets
Array of strings
Array of objects (Panel)
object (IServiceAppConfig)
type
string
Enum: "system" "regular"
object (Crashloop)
object (ServiceMode)
object (ServiceMetadata)
Responses
200

Ok

post/services
Request samples
application/json
{
  • "packageId": "string",
  • "appId": "string",
  • "packageRevision": "string",
  • "initParams": { },
  • "runtime": { },
  • "useUserJwt": true,
  • "botUserName": "string",
  • "versions": {
    },
  • "moduleName": "string",
  • "global": true,
  • "active": true,
  • "runExecutionAsProcess": true,
  • "executionTimeout": 0,
  • "drainTime": 0,
  • "onReset": "rerun",
  • "name": "string",
  • "projectId": "string",
  • "driverId": "string",
  • "id": "string",
  • "version": "string",
  • "url": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "creator": "string",
  • "maxAttempts": 0,
  • "secrets": [
    ],
  • "panels": [
    ],
  • "config": {
    },
  • "type": "system",
  • "crashloop": {
    },
  • "mode": {
    },
  • "metadata": {
    }
}
Response samples
application/json
{
  • "packageId": "string",
  • "appId": "string",
  • "packageRevision": "string",
  • "initParams": { },
  • "runtime": { },
  • "useUserJwt": true,
  • "botUserName": "string",
  • "versions": {
    },
  • "moduleName": "string",
  • "global": true,
  • "active": true,
  • "runExecutionAsProcess": true,
  • "executionTimeout": 0,
  • "drainTime": 0,
  • "onReset": "rerun",
  • "name": "string",
  • "projectId": "string",
  • "driverId": "string",
  • "id": "string",
  • "version": "string",
  • "url": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "creator": "string",
  • "maxAttempts": 0,
  • "secrets": [
    ],
  • "panels": [
    ],
  • "config": {
    },
  • "type": "system",
  • "crashloop": {
    },
  • "mode": {
    },
  • "metadata": {
    }
}