Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Workflow jobs and Workflow runs documentation #90

Closed
Fgerthoffert opened this issue Mar 19, 2020 · 4 comments
Closed

Workflow jobs and Workflow runs documentation #90

Fgerthoffert opened this issue Mar 19, 2020 · 4 comments

Comments

@Fgerthoffert
Copy link

Fgerthoffert commented Mar 19, 2020

Hi,

When calling: https://circleci.com/api/v2/insights/{project-slug}/workflows/{workflow-name}/jobs/{job-name} or https://circleci.com/api/v2/insights/{project-slug}/workflows/{workflow-name}

The documentation specifies credits-used but the payload is actually credits_used (see below).

The payload received is:

    {
      "id": "REMOVED",
      "started_at": "2020-03-19T03:20:55.139Z",
      "stopped_at": "2020-03-19T03:25:23.275Z",
      "duration": 268,
      "status": "success",
      "credits_used": 44
    },
@Fgerthoffert Fgerthoffert changed the title Workflow jobs Workflow jobs documentation Mar 19, 2020
@Fgerthoffert Fgerthoffert changed the title Workflow jobs documentation Workflow jobs and Workflow runs documentation Mar 19, 2020
@sulami
Copy link
Contributor

sulami commented May 22, 2020

@millerpeterson you might be interested in this.

@millerpeterson
Copy link
Contributor

millerpeterson commented May 22, 2020

Thanks I'll fix the docs.

@millerpeterson
Copy link
Contributor

Updated the docs to show the correct field name credits_used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@sulami @millerpeterson @Fgerthoffert and others