Stoplight
Stoplight is an API design, documentation, and governance platform for building and managing APIs.
- Base URL:
https://api.stoplight.io/v1 - Auth:
header:Authorization(pass your key via theapiKeyinput)
Operations
get_versions_versionid_export_format— GET /versions/{versionId}/export/{format} — Exportpost_versions_publish_anon— POST /versions/publish/anon — Publish Anonymousput_versions_versionid_import— PUT /versions/{versionId}/import — Importpost_versions_versionid_publish— POST /versions/{versionId}/publish — Publishput_versions_versionid_unpublish— PUT /versions/{versionId}/unpublish — Unpublish
Inputs
apiKey— your stoplight API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: get_versions_versionid_export_format
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: get_versions_versionid_export_format, post_versions_publish_anon, put_versions_versionid_import, post_versions_versionid_publish, put_versions_versionid_unpublish |
format |
string | no | — | Path parameter format (required by some operations). |
versionId |
string | no | — | Path parameter versionId (required by some operations). |
body |
string | no | — | Request body as a JSON object string (for create/update operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |