{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"The following actions are available on an Image.\n\n## Convert an Image to a Snapshot\n\nTo convert an image, for example, a backup to a snapshot, send a POST request\nto `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `convert`.\n\n## Transfer an Image\n\nTo transfer an image to another region, send a POST request to\n`/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `transfer` and set\n`region` attribute to the slug identifier of the region you wish to transfer\nto.\n","properties":{"path":{"type":"object","properties":{"image_id":{"type":"integer","examples":[62137902],"description":"A unique number that can be used to identify and reference a specific image."}},"required":["image_id"],"additionalProperties":false},"body":{"anyOf":[{"$ref":"#/definitions/image_action_base"},{"$ref":"#/definitions/image_action_transfer"}]}},"required":["path"],"additionalProperties":false,"definitions":{"image_action_base":{"type":"object","properties":{"type":{"type":"string","description":"The action to be taken on the image. Can be either `convert` or `transfer`.","enum":["convert","transfer"],"examples":["convert"]}},"required":["type"]},"image_action_transfer":{"allOf":[{"$ref":"#/definitions/image_action_base"},{"type":"object","properties":{"region":{"$ref":"#/definitions/region_slug"}},"required":["type","region"]}]},"region_slug":{"type":"string","description":"The slug identifier for the region where the resource will initially be  available.","enum":["ams1","ams2","ams3","blr1","fra1","lon1","nyc1","nyc2","nyc3","sfo1","sfo2","sfo3","sgp1","tor1","syd1"],"examples":["nyc3"]}}},"name":"Initiate an Image Action","id":"digitalocean.imageactions_post","example":{"path":{"image_id":62137902}},"maxRequests":1,"summary":false}}