Skip to content
Skills Library
DevOps & cloud · Tool integration

wit-invoke

/wit-invoke

Call Azure DevOps REST APIs via az devops invoke command. Use when you need to access Azure DevOps features not available in the CLI, such as work item comments, search, boards, backlogs, capacities, or any wit/work/search API endpoint. Use when the user mentions "invoke", "REST API", "API call", or needs features like comments, search, board columns, or team capacity.

Licence
MIT
Last repository change
03.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Call Azure DevOps REST APIs via az devops invoke command. Use when you need to access Azure DevOps features not available in the CLI, such as work item comments, search, boards, backlogs, capacities, or any wit/work/search API endpoint. Use when the user mentions "invoke", "REST API", "API call", or needs features like comments, search, board columns, or team capacity.

Triggers from the description

invokeREST APIAPI call
Original author description

Call Azure DevOps REST APIs via az devops invoke command. Use when you need to access Azure DevOps features not available in the CLI, such as work item comments, search, boards, backlogs, capacities, or any wit/work/search API endpoint. Use when the user mentions "invoke", "REST API", "API call", or needs features like comments, search, board columns, or team capacity.

How it works

  1. CRITICAL LIMITATIONS - READ FIRST
  2. Command Pattern
  3. Verified Working Examples
  4. Verified Areas and Resources
  5. API Discovery
  6. Tips
Original SKILL.md headings · 156 lines, 517 words
SKILL.md preview
---
name: wit-invoke
description: Call Azure DevOps REST APIs via az devops invoke command. Use when you need to access Azure DevOps features not available in the CLI, such as work item comments, search, boards, backlogs, capacities, or any wit/work/search API endpoint. Use when the user mentions "invoke", "REST API", "API call", or needs features like comments, search, board columns, or team capacity.
---

# Azure DevOps REST API via az devops invoke (Verified)

## CRITICAL LIMITATIONS - READ FIRST

1. **--in-file requires actual file path** - Does NOT accept stdin (`-`):
   ```bash
   # WRONG - will fail:
   echo '{}' | az devops invoke --in-file -

   # CORRECT:
   echo '{"searchText": "query"}' > /tmp/request.json
   az devops invoke --in-file /tmp/request.json
   ```

2. **Comments API doesn't work via invoke** - Use `--discussion` on update instead:
   ```bash
   # WRONG - returns 404:
   az devops invoke --area wit --resource comments --route-parameters workItemId=123

   # CORRECT - add comment via update:
   az boards work-item update --id 123 --discussion "My comment" -o json
   ```

3. **Route parameters must match exactly** - Missing or extra params cause KeyError

## Command Pattern

```bash
az devops invoke \
  --area {AREA} \
  --resource {RESOURCE} \
  --route-parameters {key}={value} \
  --http-method {GET|POST|PUT|PATCH|DELETE} \
  --in-file {file.json} \
  --api-version {VERSION} \
  -o json
```

## Verified Working Examples

### Search Work Items (VERIFIED)

Create search payload:
```bash
echo '{"searchText": "pipeline", "$top": 10}' > /tmp/search.json
```

Execute search:
```bash
az devops invoke \
  --area search \
  --resource workitemsearchresults \
  --http-method POST \
  --in-file /tmp/search.json \
  --api-version 7.0 \
  -o json
```

With JMESPath query for clean output:
```bash
az devops invoke \
  --area search \
  --resource workitemsearchresults \
  --http-method POST \
  --in-file /tmp/search.json \
  --api-version 7.0 \
  --query "results[].{id:fields.\"system.id\", title:fields.\"system.title\", state:fields.\"system.state\"}" \
  -o table
```

### List Boards (VERIFIED)

```bash
az devops invoke \
  --area work \
  --resource boards \
  --route-parameters project=ProjectName team="TeamName" \
  --api-version 7.0 \
  -o json
```

### Get Board Columns (VERIFIED)

```bash
az devops invoke \
  --area work \
  --resource columns \
  --route-parameters project=ProjectName team="TeamName" board=Features \
  --api-version 7.0 \
  -o json
```

### Get Backlogs (VERIFIED)

```bash
az devops invoke \
  --area work \
  --resource backlogs \
  --route-parameters project=ProjectName team="TeamName" \
  --api-version 7.0 \
  -o json
```

### Get Team Capacity

```bash
az devops invoke \
  --area work \
  --resource capacities \
  --route-parameters project=ProjectName team="TeamName" iterationId={GUID} \
  --api-version 7.0 \
  -o json
```

## Verified Areas and Resources

### work (Boards & Backlogs)

| Resource | Route Parameters | Verified |
|----------|-----------------|----------|
| boards | project, team | YES |
| columns | project, team, board | YES |
| backlogs | project, team | YES |
| capacities | project, team, iterationId | - |
| teamdaysoff | project, team, iterationId | - |

### search

| Resource | Method | Verified |
|----------|--------|----------|
| workitemsearchresults | POST | YES |

### wit (Work Item Tracking)

| Resource | Note |
|----------|------|
| comments | NOT WORKING via invoke - use `az boards work-item update --discussion` instead |

## API Discovery

To see ALL available API areas and resources:
```bash
az devops invoke -o json > api-discovery.json
```

This returns 214 areas with 1,407+ resources.

## Tips

1. **Use temp files for POST bodies** - Create in /tmp/, clean up after
2. **Quote team names with spaces** - `team="Team Name"`
3. **Check resource names** - Some use camelCase, others lowercase
4. **Use --query for filtering** - JMESPath queries reduce output
5. **Try 7.0 first** - Fall back to preview versions if needed

Versions

The database has no other skills named wit-invoke.

Database snapshot: 13.11.2026 · package version 8e00915b4fa4 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100azure-devops-rest-api
    Guide for working with Azure DevOps REST APIs and OpenAPI specifications. Use this skill when implementing new Azure DevOps API integrations, exploring API capabilities, understanding request/response formats, or referencing the official OpenAPI specifications from the…
  • 100azure-devops-workflow
    Use Azure DevOps Services to triage Azure Boards work items or sprint backlogs, inspect and review Azure Repos pull requests, or diagnose Azure Pipelines builds and runs. Also use when the user supplies a dev.azure.com link for one of those resources.
  • 100azure-devops
    Interact with Azure DevOps repositories, pull requests, and APIs using the AZURE_DEVOPS_TOKEN environment variable. Use when working with code hosted on Azure DevOps or managing Azure DevOps resources.
  • 100azure-devops
    Interact with Azure DevOps repositories, pull requests, and APIs using the AZURE_DEVOPS_TOKEN environment variable. Use when working with code hosted on Azure DevOps or managing Azure DevOps resources.
  • 100azure-devops
    Azure DevOps via Apideck's Proxy API + managed Vault auth — Apideck handles auth and proxies HTTP calls to Azure DevOps's native API. Use when the user wants to call Azure DevOps (no unified API resource mapping). Routes through Apideck with serviceId "azure-devops".
  • 100azure-devops
    Set up Azure Pipelines for CI/CD, configure build and release pipelines, manage Azure DevOps projects, and integrate with Azure services. Use when working with Azure DevOps Services or Server for enterprise DevOps workflows.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.