Skip to content

Commit

Permalink
Add default config files and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Dec 9, 2024
1 parent 70ee8b3 commit 59977cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ Before running the command, replace the following variables to match your projec
* `{YOUR_TOKEN}` - Your personal access token. You can retrieve one from login via one of the methods from https://admin.hlx.page/login and copy the token from the `auth_token` cookie in the response.

```bash
curl -v 'https://admin.hlx.page/config/{org}/sites/{site}.json' \
curl -X POST 'https://admin.hlx.page/config/{org}/sites/{site}.json' \
-H 'content-type: application/json' \
-H 'x-auth-token: {YOUR_TOKEN}' \
--data-binary '@default-config.json'
```

### Apply Index Configuration
```bash
curl -v 'https://admin.hlx.page/config/{org}/sites/{site}/content/query.yaml' \
curl -X POST 'https://admin.hlx.page/config/{org}/sites/{site}/content/query.yaml' \
-H 'content-type: text/yaml' \
-H 'x-auth-token: {YOUR_TOKEN}' \
--data-binary '@default-query.yaml'
```

### Apply Sitemap Configuration
```bash
curl -v 'https://admin.hlx.page/config/{org}/sites/{site}/content/sitemap.yaml' \
curl -X POST 'https://admin.hlx.page/config/{org}/sites/{site}/content/sitemap.yaml' \
-H 'content-type: text/yaml' \
-H 'x-auth-token: {YOUR_TOKEN}' \
--data-binary '@default-sitemap.yaml'
Expand Down

0 comments on commit 59977cd

Please sign in to comment.