To check if cURL is installed on your computer, open a terminal or command prompt (on Windows, open PowerShell) and run:
curl --helpIf you get a long result showing command usage information, cURL is installed and ready to use. If you see command not found instead, download the cURL executable for your operating system from the cURL download page.
The minimal command to create a simple order looks like:
curl --location --request POST 'https://api.planet.com/compute/ops/orders/v2' --header 'Authorization: api-key <your-api-key>' --header 'Content-Type: application/json' --data-raw '{
"name": "simple order",
"products": [
{
"item_ids": [
"20240616_190907_10_2477"
],
"item_type": "PSScene",
"product_bundle": "analytic_8b_sr_udm2"
}
]
}'Example response:
{
"_links": {
"_self": "https://api.planet.com/compute/ops/orders/v2/fea73f3f-9083-44c7-9b7b-0cfe08a6ad39"
},
"created_on": "2024-06-18T14:27:46.435Z",
"error_hints": [],
"id": "fea73f3f-9083-44c7-9b7b-0cfe08a6ad39",
"last_message": "Preparing order",
"last_modified": "2024-06-18T14:27:46.435Z",
"name": "simple order",
"products": [
{
"item_ids": [
"20240616_190907_10_2477"
],
"item_type": "PSScene",
"product_bundle": "analytic_8b_sr_udm2"
}
],
"state": "queued"
}For more information, see the Ordering Scenes documentation.
Comments
Please sign in to leave a comment.