APISIX-MCP

Official
by api7

create_or_update_credential

Create or update a credential for a consumer on the APISIX-MCP server by defining the credential ID, username, and configuration object.

Instructions

Create or update a credential for a consumer

Input Schema

NameRequiredDescriptionDefault
credentialYescredential configuration object
idYescredential id
usernameYesconsumer username

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "credential": { "additionalProperties": true, "description": "credential configuration object", "properties": { "desc": { "description": "credential description", "maxLength": 256, "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, "description": "credential labels", "type": "object" }, "name": { "description": "credential name", "type": "string" }, "plugins": { "additionalProperties": {}, "description": "credential plugins", "type": "object" } }, "required": [ "name" ], "type": "object" }, "id": { "description": "credential id", "type": "string" }, "username": { "description": "consumer username", "type": "string" } }, "required": [ "username", "id", "credential" ], "type": "object" }
ID: s62o271u37