Add a log to an action run
POST/v1/actions/runs/:run_id/logs
This route allows you to send a log message back to Port, which will be displayed in the action run's page. You can also use this route to update the run's termination status (SUCCESS/FAILURE) and label describing the status.
To learn more about action runs, check out the documentation.
Requestโ
Path Parameters
- application/json
Body
required
The termination status of the action run. Can be left blank if you only want to send a log message.
Possible values: [SUCCESS
, FAILURE
]
A label to describe the status of the action run. Can be left blank if you only want to send a log message.
The log message to send back to Port.
Responsesโ
- 201
- 404
- 422
- 500
Added successfully.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [true
]
runLog
object
{
"ok": true,
"runLog": {
"id": "string",
"runId": "string",
"message": "string",
"createdBy": "string",
"createdAt": "2024-07-29T15:51:28.071Z"
}
}
One of the following errors occurred:
Error | Description |
---|---|
not_found | The action run with the provided identifier was not found |
One of the following errors occurred:
Error | Description |
---|---|
invalid_request | The data provided does not match the route schema |
run_exhausted | Action run already finished execution |
One of the following errors occurred:
Error | Description |
---|---|
internal_error | An internal error occurred |