CarrierService "active" set to false, invisible via GET /admin/api/2021-04/carrier_services.json

Vicente
Tourist
7 0 2

Hi I am trying to update (PUT) a CarrierService "active" property to "false".

PUT /admin/api/2021-04/carrier_services/1036894956.json
{
  "carrier_service": {
    "id": 1036894956,
    "name": "Some new name",
    "active": false
  }
}

When I want to retrieve all the CarrierServices via GET

Retrieve a list of carrier services

GET /admin/api/2021-04/carrier_services.json

 The the CarrierService "id": 1036894956 is not shown in the list. Only the active CarrierServices.

But if I want to update again back to active == true, it will show up again.

Can anyone confirm if this is by design?

 

0 Likes