cidertool / asc-go

An App Store Connect API client for Go
https://pkg.go.dev/github.com/cidertool/asc-go/asc
GNU General Public License v3.0
38 stars 22 forks source link

EnableCapability 405 Error #11

Open wave2588 opened 1 year ago

wave2588 commented 1 year ago

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

sentient commented 10 months ago

Is this the clone with the fix?

https://github.com/wave2588/asc-go