Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix delete job #10

Merged
merged 1 commit into from
Mar 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ A `JobArtifact` is represented by the following model class:
|`get_report(job_id)` | Returns synchronously the `Job` object including its analysis report even if the job is still running | Job |
|`get_report_async(job_id)` | Waits and returns the `Job` object including its analysis report | Job |
|`get_artifacts(job_id)` | Returns a list of the observables that have been extracted from the analysis report | List[JobArtifact] |
|`delete(org_id)` | Requires `superadmin` role, returns `true` if the delete completes successfully | Boolean |
|`delete(job_id)` | Requires `superadmin` role, returns `true` if the delete completes successfully | Boolean |

### Examples

Expand All @@ -573,4 +573,4 @@ for job in jobs:
artifacts = api.jobs.get_artifacts(job.id)
for a in artifacts:
print('- [{}]: {}'.format(a.dataType, a.data))
```
```