---
updatedAt: 2026-03-25T12:34:22.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Configure program limit

Configure the maximum granted limit allowed for a program within an organization.

Refer to the [Program limits](doc:program-limits) guide for more information.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Balances and limits",
    "version": "1.0.0",
    "description": "recover the description with the PM",
    "contact": {
      "name": "API Support"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/balances-limits",
      "description": "Sandbox API server for testing"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Account access token. Tokens can expire quickly, which can result in an \"Unauthorized\" error.",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "GlobalConfigLimit": {
        "type": "object",
        "description": "Limit configuration",
        "properties": {
          "value": {
            "description": "Configured program limit value (must be a non-negative decimal number with high precision)",
            "type": "number",
            "minimum": 0,
            "example": 1000.5
          },
          "is_active": {
            "description": "Status of the configuration limit (`true` if active, `false` if inactive)",
            "type": "boolean",
            "example": true
          }
        },
        "required": [
          "value",
          "is_active"
        ]
      },
      "GlobalConfigLimits": {
        "type": "object",
        "description": "Limits configuration",
        "properties": {
          "max_credit_limit": {
            "$ref": "#/components/schemas/GlobalConfigLimit"
          }
        },
        "required": [
          "max_credit_limit"
        ]
      },
      "CreateGlobalConfigRequest": {
        "type": "object",
        "description": "Request to create a new global configuration",
        "properties": {
          "level": {
            "description": "Configuration level (currently only PROGRAM is supported)",
            "type": "string",
            "enum": [
              "PROGRAM"
            ],
            "example": "PROGRAM"
          },
          "program_id": {
            "description": "Program ID (required when level is PROGRAM, must be positive)",
            "type": "integer",
            "minimum": 1,
            "example": 123
          },
          "limits": {
            "$ref": "#/components/schemas/GlobalConfigLimits"
          }
        },
        "required": [
          "level",
          "program_id",
          "limits"
        ]
      },
      "ErrorModel": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Message that describes the error.",
            "example": "An Internal Server Error found, please contact the administrator"
          },
          "code": {
            "type": "string",
            "description": "Code that identifies the error type.",
            "example": "EBLS9999"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        }
      },
      "ErrorDetails": {
        "type": "object",
        "properties": {
          "location": {
            "description": "Location describes the attribute when the error is present",
            "type": "string",
            "example": "payload.attribute"
          },
          "message": {
            "type": "string",
            "description": "Message that describes the error detail",
            "example": "attribute is null"
          }
        }
      }
    },
    "examples": {
      "headerValidationError": {
        "value": {
          "message": "Some required headers are missing",
          "code": "WBLS0001"
        }
      },
      "jsonSyntaxError": {
        "value": {
          "message": "Invalid syntax input",
          "code": "WBLS0003"
        }
      },
      "genericSystemError": {
        "value": {
          "message": "Internal error found, please contact the administrator",
          "code": "EBLS9999"
        }
      },
      "globalConfigValidationError": {
        "value": {
          "message": "Invalid input",
          "code": "WBLS0002",
          "details": [
            {
              "location": "payload.level",
              "message": "level 'INVALID' is not supported. Only 'PROGRAM' is currently allowed"
            }
          ]
        }
      },
      "globalConfigDuplicateError": {
        "value": {
          "message": "Duplicate config",
          "code": "DUPLICATE_CONFIG"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Program limits",
      "description": "Endpoints to manage program limit configurations."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1/global-configs": {
      "post": {
        "operationId": "post-v1-global-configs",
        "summary": "Configure program limit",
        "description": "Configure the maximum granted limit allowed for a program within an organization.\n\nRefer to the [Program limits](https://developers.pismo.io/pismo-docs/docs/program-limits) guide for more information.\n",
        "tags": [
          "Program limits"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlobalConfigRequest"
              },
              "examples": {
                "valid request with positive value": {
                  "summary": "Valid program limit config creation - is_active required when value > 0",
                  "value": {
                    "level": "PROGRAM",
                    "program_id": 123,
                    "limits": {
                      "max_credit_limit": {
                        "value": 1000.5,
                        "is_active": true
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Global configuration created successfully"
          },
          "400": {
            "description": "Bad request - validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                },
                "examples": {
                  "header validation error": {
                    "$ref": "#/components/examples/headerValidationError"
                  },
                  "validation error": {
                    "$ref": "#/components/examples/globalConfigValidationError"
                  },
                  "json syntax error": {
                    "$ref": "#/components/examples/jsonSyntaxError"
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict - configuration already exists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                },
                "examples": {
                  "duplicate config": {
                    "$ref": "#/components/examples/globalConfigDuplicateError"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                },
                "examples": {
                  "system error": {
                    "$ref": "#/components/examples/genericSystemError"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```