How to programmatically upload files to Maniphest ticket using Conduit?

1.2k views Asked by At

i can't find the documentation anywhere for how to actually use the Conduit API. I'm able to create a task using some really weird methods, but once i create the ticket, i can't find any documentation about how to actually upload a file anywhere.

i tried looking at:

https://secure.phabricator.com/conduit/method/maniphest.createtask/

and i get so confused on how this actually works. what actually is this?

1

There are 1 answers

3
JSON On

I think you need to upload the File separately through the file.upload conduit method, then use an {Fnnn} reference in the Task or Comment text to link to it. I presume when file.upload says it returns a GUID, it means a PHID, so you'll also need to use file.info to get the id to use in place of the nnn in the reference text.