Skip to content

Commit 8baa12a

Browse files
Emma SteuerEmma Steuer
authored andcommitted
docs
1 parent 5f18d59 commit 8baa12a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/cli/cli-subscriptions.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,30 @@ The main documentation page also has the parameters for Google Cloud, AWS and Or
480480

481481
### Subscriptions Request
482482

483-
Once you’ve got all your sub-blocks of JSON saved you’re ready to make a complete
484-
subscriptions request with the `subscriptions request` command:
483+
When creating a new subscription, you can include hosting options directly using the --hosting and --collection-id flags.
484+
485+
- The --hosting option is optional and currently supports sentinel_hub as its only value.
486+
- The --collection_id is also optional. If you decide to use this, ensure that the subscription request and the collection have matching bands. If you're unsure, allow the system to create a new collection for you by omitting the --collection_id option. This will ensure the newly set-up collection is configured correctly, and you can subsequently add items to this collection as needed.
487+
- You may also input --hosting as a JSON file. The file should be formatted:
488+
489+
```json
490+
"hosting": {
491+
"parameters": {
492+
"collection_id": "4bdef85c-3f50-4006-a713-2350da665f80"
493+
},
494+
"type": "sentinel_hub"
495+
},
496+
```
497+
498+
Once you’ve got all your sub-blocks of JSON saved you’re ready to make a complete subscriptions request with the `subscriptions request` command:
485499

486500
```sh
487501
planet subscriptions request \
488502
--name 'First Subscription' \
489503
--source request-catalog.json \
490504
--tools tools.json \
491505
--delivery cloud-delivery.json \
506+
--hosting sentinel_hub \
492507
--pretty
493508
```
494509

0 commit comments

Comments
 (0)