ckanaction

package_resource_reorder

PUT
package_resource_reorder

Reorder resources against datasets. If only partial resource ids are supplied then these are assumed to be first and the other resources will stay in their original order.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
id?string

the id or name of the package to update

order?array<string>

a list of resource ids in the order needed

Example Request
curl -X PUT 'http://localhost:5000/api/3/action/package_resource_reorder' \  -H 'Content-Type: application/json' \  -d '{}'