Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sub command update of the products #250

Open
maxwelbm opened this issue Nov 13, 2024 · 0 comments · May be fixed by #261
Open

Create sub command update of the products #250

maxwelbm opened this issue Nov 13, 2024 · 0 comments · May be fixed by #261
Assignees
Labels
domain:mdz Responsible for the Midaz Command-Line Interface (CLI) feature New feature

Comments

@maxwelbm
Copy link
Contributor

Context

Creating a command to update a product through the CLI.

Description of the command update

  • Short: Updates an existing product with new policies.
  • Long: The update subcommand allows you to adjust the policies and settings of an existing product. With it, you can modify the clustering rules, adapting the grouping of clients according to changes in business strategies and needs.

Response api update product example

{
    "id": "01932727-1b5a-7540-98c0-6521ffe78ce6",
    "name": "Product Practical Metal Sausages BLOCKED",
    "ledgerId": "01932715-9f93-7432-90c3-4352bcfe464d",
    "organizationId": "01931b04-964a-7caa-a422-c29a95387c00",
    "status": {
        "code": "BLOCKED",
        "description": "Teste Product BLOCKED"
    },
    "createdAt": "2024-11-13T20:11:34.617671Z",
    "updatedAt": "2024-11-13T20:16:30.48922Z",
    "deletedAt": null,
    "metadata": {
        "bitcoinn": "35x7shF9VF1npqiTNjMsytJTRBNAoaAh",
        "boolean": true,
        "chave": "metadata_chave",
        "double": 10.5,
        "int": 1
    }
}
@maxwelbm maxwelbm added feature New feature domain:mdz Responsible for the Midaz Command-Line Interface (CLI) labels Nov 13, 2024
@maxwelbm maxwelbm self-assigned this Nov 13, 2024
@maxwelbm maxwelbm linked a pull request Nov 14, 2024 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:mdz Responsible for the Midaz Command-Line Interface (CLI) feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant