v1

latestOpenAPI 3.0.0CoreStack Inc License2026-07-248001,5071.7 MB
Automation

Update Script

Updates script details such as name, script path, dependencies etc.,

put/operation/automation/{tenant_id}/scripts/{script_id}

Path parameters

tenant_idstring required

Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

script_idstring required

ID of the script. This can be fetched from listScripts API

Request body

namestring required

Name of the script and it should be unique.

uristring

Unique URI for script - eg: script/ansi/linux/lamp_install. If not provided, corestack will generate it automatically

descriptionstring

Detailed description about script

categorystring[] required

Script Category

platformstring[] required

Platforms supported by script.

operating_systemstring[] required

OS supported by script

config_type'ansible' required

Config type of the script. Create is supported for ansible type scripts alone for now

scope'private' | 'account' | 'tenant' required

The scope of the script: Account scope - All users under that account will have access to view and execute Only Account admins can update/delete the scripts, Tenant Scope - Users with access to the specific tenant will have access to scripts who can describe or execute scripts. Tenant admins can only update/delete. Private Scope - User who created will only have access

playbook_yamlstring

Playbook yaml path - mandatory for ansible scripts

Example request

{
  "category": [
    "Application"
  ],
  "platform": [
    "linux"
  ],
  "operating_system": [
    "centos"
  ],
  "config_type": "ansible",
  "scope": "private",
  "script_info": [
    {
      "path_type": "file"
    }
  ],
  "dependencies": [
    {
      "path_type": "file"
    }
  ]
}

Response

Updated

script_idstring

Unique ID of the script