Assign payment method

posthttps://app.mk.io/api/v1/projects/:project_name/paymentMethod

Replace the payment method for this project and activate the project if it is not already active. It is not possible to remove the payment method from a project.

RBAC Capability Required: core.subscription.create

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

project_namestringRequired

Request

This endpoint expects an object.

Loading schema details…

Response

200The payment method was updated

No response body.

Errors

400Bad Request

Loading schema details…

401Unauthorized

Loading schema details…

403Forbidden

Loading schema details…

404Not Found

Loading schema details…

429Too Many Requests

Loading schema details…

500Internal Server Error

Loading schema details…