EnableCapability 405 Error
- Dominant language
- Go
- Stars
- 49
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
Code:
```
resp, _, err := c.client.Provisioning.EnableCapability(ctx, capabilityType, []asc.CapabilitySetting{}, bundleID)
```
Response Error:
```
PATCH https://api.appstoreconnect.apple.com/v1/bundleIdCapabilities: 405
* 405 METHOD_NOT_ALLOWED – The request method is not valid for the resource path.
The request method used for this request is not valid for the resource path. Please consult the documentation.
```
The apple api documentation says Post method,asc-go why is patch method?
https://developer.apple.com/documentation/appstoreconnectapi/enable_a_capability
Contributor guide
Research direction
Start at the EnableCapability call in the issue and locate its implementation in the asc-go repository. Compare the request method and resource path with Apple's enable-a-capability documentation, then reproduce the 405 response and verify the corrected request behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100