create_transaction_tag
Type: mutation
Creates a new transaction tag.
Signature
async def create_transaction_tag(
name: str,
color: str
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | str | Yes | The name of the tag |
color | str | Yes | The 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:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.