# Edit rev share

`PUT https://api.nexus.gg/v1/manage/scheduled-rev-shares/{scheduledRevShareId}`

Replaces an existing scheduled revenue-share window in full: whatever `revShare` and `tierRevenueShares` you send become the schedule's entire configuration. This is not a partial patch. If you omit `tierRevenueShares` on an edit, any tier overrides from the previous version are dropped, not preserved.

`startDate` and `endDate` are required on every call. The `409` conflict check runs again on the new window against every other schedule for the group, excluding the one being edited.

Send `revShare` as a percentage from 1 to 100, and avoid sending exactly `1`.

## Authorizations

- `X-SHARED-SECRET` (string, header, required) - Send your **secret** API key (`nexus_sk_...`) in the `X-SHARED-SECRET` header. [Generate one](/authentication/api-keys/) in the Publisher Dashboard.

## Path parameters

- `scheduledRevShareId` (string, required) - The scheduled rev share's id (ScheduledRevShare.uuid), a 21-character nanoid.

## Query parameters

- `groupId` (string) - Creator group the schedule belongs to. If your key is scoped to a single program, that group is always used regardless of this value; otherwise falls back to your default group when omitted.

## Request body (`application/json`)

- `revShare` (number) - Flat revenue-share percentage for the whole group during this window, 1 to 100. This replaces, not merges with, the previous configuration.
- `startDate` (string) - Start of the override window. ISO 8601, in UTC.
- `endDate` (string) - End of the override window. Must not be earlier than startDate (equal timestamps are accepted). ISO 8601, in UTC.
- `tierRevenueShares` (array of object)

## Responses

### 200

Scheduled rev share that was updated

#### Body (`application/json`)

- `id` (string)
- `revShare` (number) - Group-wide revenue-share percentage for this schedule's window (25 means 25%). Falls back to the group's normal, non-scheduled default when the schedule only carries tier-specific overrides.
- `startDate` (string)
- `endDate` (string)
- `groupId` (string)
- `groupName` (string)
- `tierRevenueShares` (array of object)

### 400

Invalid request body or end date is before start date

### 404

`groupId` did not match a creator group on your account, or `scheduledRevShareId` did not match any schedule for that group.

### 409

The new window overlaps another active or scheduled (non-deleted) revenue share for this group.
