Script Forge

Update

Update an existing Script Forge record by ID.

put/api/cp/scriptforge/{id}

Path parameters

idinteger required

Id identifier

Request body

idinteger

Id

account_idinteger

Account Id (references account.id)

app_idstring

App Id

uuidstring uuid

Uuid

namestring required

Name

languagestring required

Language

codestring

Code

timeoutinteger

Timeout

processesinteger

Processes

activeinteger required

Active

form_idinteger

Form Id

asyncinteger required

Async

publicinteger required

Public

type'legacy' | 'script' | 'app' | 'debug' | 'driver' | 'worker' | 'quickjs'

Type

versionstring

Version

scriptforge_repo_idinteger

Scriptforge Repo Id

scriptforge_repo_versionstring

Scriptforge Repo Version

c5_deststring

C 5 Dest

pbx_serverstring

Pbx Server

global_routing_priorityinteger required

Global Routing Priority

cronstring

Cron

raminteger

Ram

loadnumber

Load

hostsstring

Hosts

Example request

{
  "id": 12345,
  "account_id": 1,
  "app_id": 1,
  "uuid": "example_uuid",
  "name": "Example Name",
  "language": "example_language",
  "code": "Sample code text content",
  "timeout": 123,
  "processes": 1,
  "active": true,
  "form_id": 1,
  "async": 1,
  "public": 1,
  "type": "legacy",
  "version": "example_version",
  "scriptforge_repo_id": 1,
  "scriptforge_repo_version": "example_scriptforge_repo_version",
  "c5_dest": "example_c5_dest",
  "pbx_server": "example_pbx_server",
  "global_routing_priority": 1,
  "cron": "example_cron",
  "ram": 123,
  "load": 1.5,
  "hosts": "example_hosts"
}

Response

Operation completed successfully

statusstring

Operation status

Example response

{
  "status": "OK"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.