Script Library management API
The Script Library Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
Script Libraries
List script libraries
GET /script-libraries
This API provides the capability to list Script Libraries.
Scope(Permission) required: internal_functional_lib_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | ScriptLibraryListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Add a new script library
POST /script-libraries
This API provides the capability to create a new Script library.
Scope(Permission) required: internal_functional_lib_create
Request body (required): multipart/form-data
This represents the script library to be created
Schema: scriptLibraryPOSTRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
content | string (binary) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Get script library
GET /script-libraries/{script-library-name}
This API provides the capability to retrieve the script library details by using its name.
Scope(Permission) required: internal_functional_lib_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
script-library-name | path | string | Yes | Name of the script library |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | ScriptLibraryResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update a script library
PUT /script-libraries/{script-library-name}
This API provides the capability to Update a script library of an script library by using name.
Scope(Permission) required: internal_functional_lib_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
script-library-name | path | string | Yes | Name of the script library |
Request body (required): multipart/form-data
This represents the script library details to be updated.
Schema: scriptLibraryPUTRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
description | string | ||
content | string (binary) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully Updated | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete a script library
DEL /script-libraries/{script-library-name}
This API provides the capability to delete an script library by giving its name.
Scope(Permission) required: internal_functional_lib_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
script-library-name | path | string | Yes | Name of the script library |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Get the content of the script library
GET /script-libraries/{script-library-name}/content
This API provides the capability to retrieve the content of script library by using its name.
Scope(Permission) required: internal_functional_lib_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
script-library-name | path | string | Yes | Name of the script library |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | any |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
ScriptLibrary
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ||
description | string | ||
self | string |
ScriptLibraryResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
content-ref | string | Yes |
ScriptLibraryListResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
count | integer | ||
scriptLibraries | array of ScriptLibrary |
scriptLibraryPOSTRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
content | string (binary) | Yes |
scriptLibraryPUTRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
description | string | ||
content | string (binary) | Yes |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
Was this page helpful?