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

Modify a Capability Configuration #95

Open
orj opened this issue Apr 22, 2020 · 1 comment
Open

Modify a Capability Configuration #95

orj opened this issue Apr 22, 2020 · 1 comment
Labels
draft This issue or pull request is a draft enhancement New feature or request
Milestone

Comments

@orj
Copy link
Member

orj commented Apr 22, 2020

🗣 Context

Update the configuration of a specific capability.

💬 Narrative

As a user
I want modify a capability on a specific bundle ID
So that my app can use that capability

📝 Notes

Covering this API.

🎨 Design

asc capability modify bundleId capabilityType <capability settings>

✅ Acceptance Criteria

GIVEN ...
WHEN ...
THEN ...

@orj orj added enhancement New feature or request draft This issue or pull request is a draft labels Apr 22, 2020
@orj orj added this to the Version 0.3.0 milestone Apr 22, 2020
@DechengMa
Copy link
Contributor

DechengMa commented Jun 17, 2020

Tried both in CLI and Postman but seems the CapabilitySetting can't be easily changed in API.
I tried input one or both of these field documented in API

allowedInstances, description, enabledByDefault, name, visible, minInstances

but the API all gave me an error of Unrecognized field.
Might need further investigation on this.

My request body

{
    "data": {
        "id": "123456789_PUSH_NOTIFICATIONS",
        "attributes": {
            "capabilityType": "PUSH_NOTIFICATIONS",
            "settings": [
                {
                    "enabledByDefault": true,
                    "options": [
                        {
                            "enabled": true
                        }
                    ]
                }
            ]
        },
        "type": "bundleIdCapabilities"
    }
}

Response:

{
  "errors" : [ {
    "id" : "1234567-1234-1234-1234-123456asdcasd",
    "status" : "409",
    "code" : "ENTITY_ERROR.ATTRIBUTE.INVALID",
    "title" : "An attribute in the provided entity has invalid value",
    "detail" : "Unrecognized field 'enabledByDefault'"
  } ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft This issue or pull request is a draft enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants