Yapper Docs
Api reference
PATCH
/members/{userId}/credit-limit

Owner or admin API keys only. Admins can manage members and guests. Use null to remove the cap. Omitting the period preserves the current period, with monthly as the default for a first limit.

Authorization

bearerAuth limits:write
AuthorizationBearer <token>

In: header

Scope: limits:write

Path Parameters

userId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/members/string/credit-limit" \  -H "Content-Type: application/json" \  -d '{    "creditLimit": 0  }'
{  "data": {    "userId": "string",    "creditLimit": 0,    "creditLimitPeriod": "monthly",    "changed": true  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}