Skip to content
Discussion options

You must be logged in to vote

Thank you for the question! I can add a helpful python method to do this for sure, but in the meantime, anything that you can do in the UI you can do via scripting (it all uses the same API). You were absolutely right about trying to look in Hasura. If you go to the "Actions" tab you'll see all the custom, non-standard, mutations or queries you can do:

The one you want is c2HostFile:

mutation hostFileMutation($c2_id: Int!, $file_uuid: String!, $host_url: String!, $alert_on_download: Boolean, $remove: Boolean) {
  c2HostFile(c2_id: $c2_id, file_uuid: $file_uuid, host_url: $host_url, alert_on_download: $alert_on_download, remove: $remove) {
      status
      error
  }
}

You can do this w…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nblair2
Comment options

Answer selected by nblair2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants