action isendpro_subaccount_edit { label: "Edit a subaccount" description: "Edit a subaccount" provider: isendpro method: PUT path: "/subaccount" encoding: json input: { type: "object" required: ["keyid", "subAccountEdit"] properties: { keyid: { type: "string" description: "Clé API" } subAccountAddCredit: { type: "string" description: "montant du crédit à ajouter" } subAccountCountryCode: { type: "string" } subAccountEdit: { type: "string" description: "action à réaliser soit setPrice pour définir un prix ou addCredit pour ajouter du credit ou setRestriction modifier la restriction stop /" enum: ["setPrice", "addCredit", "setRestriction"] } subAccountKeyId: { type: "string" description: "keyid du sous-compte" } subAccountPrice: { type: "string" } subAccountRestrictionStop: { type: "string" enum: ["0", "1"] } subAccountRestrictionTime: { type: "string" enum: ["0", "1"] } } } output: { type: "object" properties: { etat: { type: "object" properties: { etat: { type: "array" items: { type: "object" properties: { code: { type: "string" } message: { type: "string" } subAccountId: { type: "string" } subAccountKeyid: { type: "string" } } } } } } } } }