Skip to main content
Version: 0.1.21 (Current)

create_transaction_tag

Type: mutation

Creates a new transaction tag.

Signature

async def create_transaction_tag(
name: str,
color: str
) -> Dict[str, Any]

Parameters

ParameterTypeRequiredDescription
namestrYesThe name of the tag
colorstrYesThe color of the tag. The observed format is six-digit RGB hexadecimal, including the leading number sign. Example: color="#19D2A5". More information can be found https://en.wikipedia.org/wiki/Web_colors#Hex_triplet. Does not appear to be limited to the color selections in the dashboard.

Example

from monarchmoney import MonarchMoney

mm = MonarchMoney()
await mm.login(email, password)

result = await mm.create_transaction_tag("example_name", "example_color")
print(result)

GraphQL Operation

Operation Name: Common_CreateTransactionTag

GraphQL Query

mutation Common_CreateTransactionTag($input: CreateTransactionTagInput!) {
createTransactionTag(input: $input) {
tag {
id
name
color
order
transactionCount
__typename
}
errors {
message
__typename
}
__typename
}
}

Try It Out

To test this API method locally:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.