admin

TBD

TOOLLIST_CREDIT_BATCHES

List Credit Batches

Overrides the value for a variable entirely by a new one.

Optional attributes

  • Name
    org
    Type
    string
    Description

    Name of the organization, for example 'name@domain.com' or 'SeaFork'. If none specified, use the value 'me' to get the user's organization.

    2 length 32

    me
    
  • Name
    show_inactive
    Type
    boolean
    Description

    If true, show inactive batches as well.

    False
    

Function Call

TOOL
LIST_CREDIT_BATCHES
#### LIST_CREDIT_BATCHES
```json
{
  "org": "me"
}
```

Response

#### Success

TOOLSET_BALANCE

Set Credit Balance

Overrides the value for a variable entirely by a new one.

Required attributes

  • Name
    batch_id
    Type
    integer
    Description

    The ID of the credits batch to modify, usually the first value in the table.

  • Name
    new_remaining_balance
    Type
    integer
    Description

    The new remaining balance for the credits batch. Leave empty if not requested to change.

Optional attributes

  • Name
    org
    Type
    string
    Description

    Name of the organization, for example 'name@domain.com' or 'SeaFork'. If none specified, use the value 'me' to get the user's organization.

    2 length 32

    me
    
  • Name
    new_initial_balance
    Type
    integer
    Description

    The new remaining balance for the credits batch. Leave empty if not requested to change.

Function Call

TOOL
SET_BALANCE
#### SET_BALANCE
```json
{
  "batch_id": 123,
  "new_remaining_balance": 1000,
  "org": "me"
}
```

Response

#### Success

Was this page helpful?