Skip to content

Commit

Permalink
docs: add more placeholder / structural content.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Mar 14, 2022
1 parent 27a74ec commit 8c56579
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/docs/how-to/how-to-schedule-feature-releases.mdx
Expand Up @@ -33,7 +33,7 @@ This guide assumes that you've got some experience with Unleash, that you've got

### Step 1: Add a date-based strategy constraint

#### Via the UI
To schedule feature release via the UI

On the strategy that you want to schedule, use the "new constraint" button to add a new constraint.

Expand All @@ -43,6 +43,8 @@ Finally, select when the feature should be released.

#### Via the API

To use the API to add a constraint, you should use the `DATE_AFTER` `operator`, the `currentTime` `contextName` and the date as the `value`.

<ApiRequest verb="patch" payload={[{"op": "replace", "path": "/constraints", "value": [{
"value": "2022-01-01T00:00:00.000Z",
"inverted": false,
Expand All @@ -52,13 +54,13 @@ Finally, select when the feature should be released.
}
]}]} url="api/admin/projects/<project-id>/features/environments/<environment>/strategies/<strategy-id>" title="Set a time-based constraint on a strategy"/>


## Schedule feature releases with custom activation strategies {#custom-activation-strategies}

### Requirements
- Unleash v3.3 or later

### Step 1: Define a custom activation strategy

See the how-to guide for more granular instructions, but you'd define a custom strategy with an `enableAfter` parameter in the form of a time format you can parse.

### Step 2: Implement the custom activation strategy in your clients
Expand Down

0 comments on commit 8c56579

Please sign in to comment.