Up - API Reference - Home
Requires JWT
Publish the configuration for an action.
Note: don't publish sensitive configuration fields like passwords or API keys.
POST /api/p/<project gid>/modules/actions/publish
Authorization: Bearer <JWT>
{
"module": "<module name>",
"action": "Action Name",
"configuration": {
"apikeyname": "Not The Actual API Key Please",
"query": "All articles",
…
},
}
module name of the module to store the action configuration for
action the name for the configuration
configuration the configuration fields as a dict, must be a valid json value (not a json-value-as-a-string!) - remember to redact sensitive information!
Authorization: <JWT>
{
"success": true,
"result": {
"module": "<module name>"
},
"data": {
"modules": {
"<module name>": {…}
}
}
}
module the name of the modified module.
modules Module info with name, version, keys, actions, and logs.
400 Bad request - missing parameters or wrong type or value
401 Unauthorized - missing or expired JWT
403 Forbidden - not a member of this project
422 Unprocessable entity - module not registered