Skip to content

Commit

Permalink
Merge pull request Azure#2 from blackchoey/frank/add_api_update_example
Browse files Browse the repository at this point in the history
refactor: add api update example
  • Loading branch information
frankqianms authored Sep 19, 2024
2 parents 15f1c4d + 91998db commit 7a1e8fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Commands/apic/api/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Update existing API.
apic api update -g contoso-resources -n contoso --api-id echo-api --custom-properties '{\"public-facing\":true}'
```

- Update single custom metadata
```bash
apic api update -g contoso-resources -n contoso --api-id echo-api --set customProperties.internal=false
```

### [2024-03-15-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5hcGljZW50ZXIvc2VydmljZXMve30vd29ya3NwYWNlcy97fS9hcGlzL3t9/2024-03-15-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.apicenter/services/{}/workspaces/{}/apis/{} 2024-03-15-preview -->
Expand Down
6 changes: 6 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -5905,6 +5905,12 @@
"apic api update -g contoso-resources -n contoso --api-id echo-api --custom-properties '{\\\"public-facing\\\":true}'"
],
"name": "Update custom properties"
},
{
"commands": [
"apic api update -g contoso-resources -n contoso --api-id echo-api --set customProperties.internal=false"
],
"name": "Update single custom metadata"
}
],
"name": "2024-03-01",
Expand Down

0 comments on commit 7a1e8fb

Please sign in to comment.