View Source Doex.Cli.Put (doex v0.14.1)

Execute a Digital Ocean API POST request

 doex put <path> <attributes>

For example

doex put /images/12345 --name newname

The output will be similar to the following, and it's the IDs you want.

{:ok,
 %{"image" => %{"created_at" => "2017-08-02T13:54:05Z",
     "distribution" => "Ubuntu", "id" => 12345, "min_disk_size" => 20,
     "name" => "newname", "public" => false,
     "regions" => ["tor1"], "size_gigabytes" => 2.05, "slug" => nil,
     "type" => "snapshot"}}}

Link to this section Summary

Link to this section Functions

Link to this macro

invoke(piped_in_argument, expr)

View Source (macro)