> ## Documentation Index
> Fetch the complete documentation index at: https://sendcloud.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Reorder your shipping rules

> Change the order in which your shipping rules are evaluated. Rules are applied from first to last.



## OpenAPI

````yaml /.openapi/v3/shipping-rules/openapi.yaml post /shipping-rules/rules/reorder
openapi: 3.1.0
info:
  title: Shipping Rules [BETA]
  version: 3.0.0
  description: >-
    The Sendcloud Shipping Rules API lets you automate how shipments are
    handled. A shipping rule applies one or more actions to a shipment whenever
    the shipment matches the rule's conditions, so you can set shipping methods,
    add insurance, or update other properties without manual work.
  contact:
    name: Sendcloud API Support
    url: https://www.sendcloud.dev
    email: contact@sendcloud.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://panel.sendcloud.sc/api/v3
    description: Sendcloud Production
security: []
tags:
  - name: Rules
    description: Create and manage the shipping rules that are applied to your shipments.
  - name: Possibilities
    description: >-
      Look up the properties, operators, and actions available to build shipping
      rules.
paths:
  /shipping-rules/rules/reorder:
    post:
      tags:
        - Rules
      summary: Reorder your shipping rules
      description: >-
        Change the order in which your shipping rules are evaluated. Rules are
        applied from first to last.
      operationId: sc-public-v3-shipping-rules-reorder-rules
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RuleReorderInput'
            examples:
              ReorderYourShippingRules:
                summary: Reorder shipping rules
                value:
                  rule_list:
                    - 3
                    - 1
                    - 2
      responses:
        '200':
          description: OK
      security:
        - HTTPBasicAuth: []
        - OAuth2ClientCreds: []
components:
  schemas:
    RuleReorderInput:
      title: RuleReorderInput
      type: object
      description: The desired evaluation order of shipping rules.
      properties:
        rule_list:
          type: array
          description: >-
            Rule ids in the desired evaluation order (first id will be evaluated
            first).
          items:
            type: integer
          example:
            - 3
            - 1
            - 2
      required:
        - rule_list
  securitySchemes:
    HTTPBasicAuth:
      type: http
      description: >-
        Basic Authentication using API key and secrets is currently the main
        authentication mechanism.
      scheme: basic
    OAuth2ClientCreds:
      type: oauth2
      description: >-
        OAuth2 is a standardized protocol for authorization that allows users to
        share their private resources stored on one site with another site
        without having to provide their credentials. OAuth2 Client Credentials
        Grant workflow. This workflow is typically used for server-to-server
        interactions that require authorization to access specific resources.
      flows:
        clientCredentials:
          tokenUrl: https://account.sendcloud.com/oauth2/token/
          scopes:
            api: Default OAuth scope required to access Sendcloud API.

````