Page 1 of 1

What is the correct request format to release an order thru API?

Posted: Thu Sep 18, 2025 6:49 pm America/New_York
by starbright
I'm using API v2 for order management in the profiles namespace.

Here are my request details:
Method=PUT, URL=https://ladsweb.modaps.eosdis.nasa.gov/api/v2/profiles/orders/502398729,
Headers (e.g., Authorization: Bearer [token], Accept: application/json, User-Agent: [your UA]),
Body/Params tried (form data={"op": "release"}, query ?op=release, json={"op": "release"}).

However, I always get 404 errors. The reference # from the error (e.g., 9bb887376b895085d8ccbd5860203236, and any previous ones).

What is the correct request format to release an order using PUT /api/v2/profiles/orders/{orderId} with op=release? Please provide a curl example if possible.

Re: What is the correct request format to release an order thru API?

Posted: Mon Sep 22, 2025 10:46 am America/New_York
by LAADS_UserServices_M
Try the following:

curl -X PUT \
-H "Authorization: Bearer YOUR_EARTHDATA_LOGIN_TOKEN_HERE" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'orderOp=release' \
https://ladsweb.modaps.eosdis.nasa.gov/api/v2/profiles/orders/YOUR_ORDER_ID_HERE


Note that this command is all one line. The “\” escapes the newline character if you run this in a terminal and want to type it on multiple lines as it is presented here. If you type all on one line, you should leave the “\” characters out, eg.

curl -X PUT -H "Authorization: Bearer YOUR_EARTHDATA_LOGIN_TOKEN_HERE" -H "Content-Type: application/x-www-form-urlencoded" -d 'orderOp=release' https://ladsweb.modaps.eosdis.nasa.gov/api/v2/profiles/orders/YOUR_ORDER_ID_HERE

Re: What is the correct request format to release an order thru API?

Posted: Mon Sep 22, 2025 12:14 pm America/New_York
by starbright
Worked like a charm! Thank you!