asc-go icon indicating copy to clipboard operation
asc-go copied to clipboard

EnableCapability 405 Error

Open wave2588 opened this issue 2 years ago • 1 comments

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

wave2588 avatar Jun 28 '23 07:06 wave2588

Is this the clone with the fix?

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

sentient avatar Dec 19 '23 03:12 sentient