> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# rotateTriggerUrlSecret

> Gives a Trigger URL a new secret and returns it, once. Needs `bolt:trigger_urls:write`.



**mutation** `rotateTriggerUrlSecret(input: RotateTriggerUrlSecretInput!): RotateTriggerUrlSecretPayload!`

## Arguments

**`input`**: `RotateTriggerUrlSecretInput!` (required)

The Trigger URL to rotate.

## Returns

`RotateTriggerUrlSecretPayload!`

**`triggerUrl`**: `TriggerUrl!`

The Trigger URL.

---

**`secret`**: `String!`

The URL's new secret. The old one stops working now. Shown only here: store it now.

## Examples

```graphql Mutation
mutation RotateTriggerUrlSecret($input: RotateTriggerUrlSecretInput!) {
  rotateTriggerUrlSecret(input: $input) {
    triggerUrl {
      publicId
      name
      isEnabled
      url
      schedule {
        slug
        name
        schedule
        timezone
        environment {
          __typename
        }
        gitBranch
      }
      createdAt
    }
    secret
  }
}
```

```json Variables
{
  "input": {
    "publicId": "string"
  }
}
```

```json Response
{
  "data": {
    "rotateTriggerUrlSecret": {
      "triggerUrl": {
        "publicId": "string",
        "name": "string",
        "isEnabled": true,
        "url": "string",
        "schedule": {
          "slug": "string",
          "name": "string",
          "schedule": "string",
          "timezone": "string",
          "environment": {
            "__typename": "Environment"
          },
          "gitBranch": "string"
        },
        "createdAt": "value"
      },
      "secret": "string"
    }
  }
}
```


## Related topics

- [Administration API: Bolt](https://docs.paradime.io/developers/graphql-api/admin-api/bolt.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Admin client: Bolt](https://docs.paradime.io/developers/python-sdk/modules/admin/bolt.md)
- [Triggers](https://docs.paradime.io/products/bolt/creating-schedules/trigger-types.md)
- [Incoming webhooks](https://docs.paradime.io/products/bolt/external-triggers/incoming-webhooks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.