api-v2 icon indicating copy to clipboard operation
api-v2 copied to clipboard

Actions API does not return `completed_at` param

Open adamjezek98 opened this issue 3 years ago • 0 comments

Steps to reproduce:

  1. Start snapshot on a Droplet
  2. Wait for snapshot to finish
  3. Fetch snapshot action detail via API

When making request directly to the action: GET https://api.digitalocean.com/v2/actions/<action.id> the API returns data as expected:

{
    "action": {
        "id": "<action.id>",
        "status": "completed",
        "type": "snapshot",
        "started_at": "2022-04-27T00:07:13Z",
        "completed_at": "2022-04-27T00:15:40Z",
        "resource_id": "<droplet id>",

However, when action is fetched via droplet: GET https://api.digitalocean.com/v2/droplets/<droplet id>/actions/<action.id> completed_at field is wrong:

{
    "action": {
        "id": "<action.id>",
        "status": "completed",
        "type": "snapshot",
        "started_at": "2022-04-27T00:07:13Z",
        "completed_at": null, <== should not be null
        "resource_id": "<droplet id>",

adamjezek98 avatar Jun 16 '22 13:06 adamjezek98