@celigo/api-specs 0.2.181 → 0.2.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/script.yml +17 -1
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/script.yml
CHANGED
|
@@ -201,7 +201,9 @@ paths:
|
|
|
201
201
|
put:
|
|
202
202
|
x-internal: false
|
|
203
203
|
summary: Update a script
|
|
204
|
-
description:
|
|
204
|
+
description: |-
|
|
205
|
+
Replaces a script's mutable fields. Send `name` on every update: a body whose `name` is
|
|
206
|
+
missing or empty is refused with 422 `invalid_script` and nothing is saved.
|
|
205
207
|
tags:
|
|
206
208
|
- Scripts
|
|
207
209
|
operationId: updateScript
|
|
@@ -251,6 +253,20 @@ paths:
|
|
|
251
253
|
$ref: '#/components/responses/401-unauthorized'
|
|
252
254
|
'404':
|
|
253
255
|
$ref: '#/components/responses/404-not-found'
|
|
256
|
+
'422':
|
|
257
|
+
description: A missing or empty `name` is refused. Nothing is saved.
|
|
258
|
+
content:
|
|
259
|
+
application/json:
|
|
260
|
+
schema:
|
|
261
|
+
$ref: '#/components/schemas/Error'
|
|
262
|
+
examples:
|
|
263
|
+
missing_name:
|
|
264
|
+
summary: name missing or empty
|
|
265
|
+
value:
|
|
266
|
+
errors:
|
|
267
|
+
- code: invalid_script
|
|
268
|
+
message: Script fields are invalid.
|
|
269
|
+
field: name
|
|
254
270
|
patch:
|
|
255
271
|
x-internal: false
|
|
256
272
|
summary: Patch a script
|
package/package.json
CHANGED