{"swagger":"2.0","info":{"description":"The API used to manage PM scripts.","version":"8.4.0","title":"Script Management API"},"host":"0.0.0.0","basePath":"/rest","schemes":["http","https"],"paths":{"/pmscripts/types":{"get":{"summary":"Returns a list of script types","operationId":"GET /pmscripts/types","produces":["application/json"],"responses":{"default":{"description":" "}}}},"/pmscripts":{"get":{"summary":"Returns a list of scripts.","description":"<p>Returns all scripts within a given organization, without any script content.</p>","operationId":"GET /pmscripts","produces":["application/json"],"parameters":[{"name":"org","in":"query","description":"The organization key.","required":false}],"responses":{"default":{"description":" "}}},"post":{"summary":"Creates a script","operationId":"POST /pmscripts","consumes":["application/json","application/xml","text/xml"],"produces":["application/json","application/xml","text/xml"],"parameters":[{"in":"body","name":"body","description":"The script spec","required":true}],"responses":{"default":{"description":" "}}}},"/pmscripts/{key}":{"get":{"summary":"Gets a list of script types","operationId":"GET /pmscripts/{key}","produces":["application/json","application/xml","text/xml"],"parameters":[{"name":"key","in":"path","description":"The script key","required":true}],"responses":{"default":{"description":" "}}},"put":{"summary":"Updates a script","operationId":"PUT /pmscripts/{key}","consumes":["application/xml","text/xml","application/json"],"produces":["application/json","application/xml","text/xml"],"parameters":[{"name":"key","in":"path","description":"The script key.","required":true},{"in":"body","name":"body","description":"The changed script","required":true}],"responses":{"default":{"description":" "}}},"delete":{"summary":"Deletes a script","operationId":"DELETE /pmscripts/{key}","produces":["application/json","application/xml","text/xml"],"parameters":[{"name":"key","in":"path","description":"The script key","required":true}],"responses":{"default":{"description":" "}}}}}}