v1

latestOpenAPI 3.0.0Apache 2.02026-07-1410280162.7 KB
scripts

Update a script with a diff

Update a script with a diff

patch/api/scripts/{scriptId}

Path parameters

scriptIdstring required

The script id

Request body

op'add' | 'replace' | 'remove' | 'copy' | 'test' required
pathstring required
{"stackTrail":"components:schemas:Patch:items:properties:value","oasType":"schema","type":"unknown"}

Example request

[
  {
    "path": "a string value"
  }
]

Response

Successful operation

codeobject required

The code of the script

descobject required

The description of the script

idstring required

The id of the script

namestring required

The name of the script

Example response

{
  "code": {
    "key": "value"
  },
  "desc": {
    "key": "value"
  },
  "id": "a string value",
  "name": "a string value"
}