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

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# SetParticipantSchedule

Participant Administration

›

[Protobuf](https://docs.canton.network/reference/admin-api/protobuf/overview.md)

›

[com.digitalasset.canton.admin.participant.v30](https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-admin-participant-v30.md)

›

SetParticipantSchedule

com.digitalasset.canton.admin.participant.v30

# SetParticipantSchedule

gRPC

RPC

`/com.digitalasset.canton.admin.participant.v30.PruningService/SetParticipantSchedule`

## Protocol Details

Protocol
gRPC

Service
PruningService

RPC
SetParticipantSchedule

Client stream
No

Server stream
No

## Inputs

### SetParticipantScheduleRequest

Message
com.digitalasset.canton.admin.pruning.v30.SetParticipantScheduleRequest

Client stream
No

`schedule`
ParticipantPruningSchedule

## Outputs

### SetParticipantScheduleResponse

Message
com.digitalasset.canton.admin.pruning.v30.SetParticipantScheduleResponse

Server stream
No

## Related Schemas

> [accordion] com.digitalasset.canton.admin.pruning.v30.SetParticipantScheduleRequest
>
> `schedule`
> ParticipantPruningSchedule

> [accordion] com.digitalasset.canton.admin.pruning.v30.ParticipantPruningSchedule
>
> `schedule`
> PruningSchedule
>
> `prune_internally_only`
> bool

> [accordion] com.digitalasset.canton.admin.pruning.v30.PruningSchedule
>
> `cron`
> string
>
> `max_duration`
> Duration
>
> `retention`
> Duration

> [accordion] com.digitalasset.canton.admin.pruning.v30.SetParticipantScheduleResponse

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.admin.participant.v30.PruningService/SetParticipantSchedule <<'EOF'
{
  "schedule": {
    "schedule": {
      "cron": "string",
      "maxDuration": "string",
      "retention": "string"
    },
    "pruneInternallyOnly": true
  }
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{}
```
