Resources

Renew a resource, refused before any charge above max_cost_usd

Read the resource first and pass its renewal.price_usd as max_cost_usd. A higher price at renewal time is refused before any charge.

post/credits/resources/{resourceId}/renew

Request

  • Base URL
    https://api.paywithlocus.com/api
  • URL
    https://api.paywithlocus.com/api/credits/resources/{resourceId}/renew
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

resourceIdstring uuid required

Request body

idempotency_keystring required
max_cost_usdstring required

Non-negative exact decimal string with at most six fractional digits. Endpoint-specific positivity and amount limits still apply.

Response

Renewed, with the updated row

Changes

No recorded changes to this operation across all 1 revision of this API.