Create an install of a package
Create an install of a package
client.zones.installs.create(stringzoneID, InstallCreateParams { package_id, inputs, version, xClientRequestID } params, RequestOptionsoptions?): Task { id, created_at, operation, 9 more }
POST/zones/{zone_id}/installs
Create an install of a package
Parameters
zoneID: string
Returns
Create an install of a package
import KeycardAPI from '@keycardai/api';
const client = new KeycardAPI();
const task = await client.zones.installs.create('zone_id', { package_id: 'package_id' });
console.log(task.id);{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"operation": "create",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"install_id": "install_id",
"links": [
{
"href": "href",
"rel": "rel",
"properties": {
"foo": "bar"
},
"titles": {
"foo": "string"
},
"type": "type"
}
],
"package_id": "package_id",
"package_slug": "package_slug",
"package_version": 0,
"warnings": [
{
"code": "validation_error",
"details": [
{
"code": "validation_error",
"field": "field",
"message": "message"
}
],
"message": "message",
"path": "path",
"request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": 0,
"timestamp": "2019-12-27T18:11:19.117Z"
}
]
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"operation": "create",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"install_id": "install_id",
"links": [
{
"href": "href",
"rel": "rel",
"properties": {
"foo": "bar"
},
"titles": {
"foo": "string"
},
"type": "type"
}
],
"package_id": "package_id",
"package_slug": "package_slug",
"package_version": 0,
"warnings": [
{
"code": "validation_error",
"details": [
{
"code": "validation_error",
"field": "field",
"message": "message"
}
],
"message": "message",
"path": "path",
"request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": 0,
"timestamp": "2019-12-27T18:11:19.117Z"
}
]
}