---
updatedAt: 2026-05-27T18:50:30.000Z
agentTools:
  projectIndex: https://api-docs.liquidplanner.com/llms.txt
---

# Create rate rule entry

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Portfolio Manager API",
    "description": "Portfolio Manager API Info",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://next.liquidplanner.com",
      "description": "Generated server url"
    }
  ],
  "tags": [
    {
      "name": "Rate Sheet - Rules",
      "description": "Custom rate sheet rules"
    }
  ],
  "paths": {
    "/api/workspaces/{workspaceId}/rate-sheet/v1/{rateSheetId}/rate-rules": {
      "post": {
        "tags": [
          "Rate Sheet - Rules"
        ],
        "summary": "Create rate rule entry",
        "operationId": "create_1",
        "parameters": [
          {
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "rateSheetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiRateRuleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiRateRuleDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSafeException"
                }
              }
            }
          }
        },
        "security": [
          {
            "lp-api": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiSafeException": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/HttpStatus"
          },
          "meta": {
            "type": "object",
            "additionalProperties": {}
          },
          "cause": {
            "type": "object",
            "properties": {
              "stackTrace": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "classLoaderName": {
                      "type": "string"
                    },
                    "moduleName": {
                      "type": "string"
                    },
                    "moduleVersion": {
                      "type": "string"
                    },
                    "methodName": {
                      "type": "string"
                    },
                    "fileName": {
                      "type": "string"
                    },
                    "lineNumber": {
                      "type": "integer",
                      "format": "int32"
                    },
                    "className": {
                      "type": "string"
                    },
                    "nativeMethod": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "message": {
                "type": "string"
              },
              "localizedMessage": {
                "type": "string"
              }
            }
          },
          "stackTrace": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "classLoaderName": {
                  "type": "string"
                },
                "moduleName": {
                  "type": "string"
                },
                "moduleVersion": {
                  "type": "string"
                },
                "methodName": {
                  "type": "string"
                },
                "fileName": {
                  "type": "string"
                },
                "lineNumber": {
                  "type": "integer",
                  "format": "int32"
                },
                "className": {
                  "type": "string"
                },
                "nativeMethod": {
                  "type": "boolean"
                }
              }
            }
          },
          "message": {
            "type": "string"
          },
          "suppressed": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "stackTrace": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "classLoaderName": {
                        "type": "string"
                      },
                      "moduleName": {
                        "type": "string"
                      },
                      "moduleVersion": {
                        "type": "string"
                      },
                      "methodName": {
                        "type": "string"
                      },
                      "fileName": {
                        "type": "string"
                      },
                      "lineNumber": {
                        "type": "integer",
                        "format": "int32"
                      },
                      "className": {
                        "type": "string"
                      },
                      "nativeMethod": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "message": {
                  "type": "string"
                },
                "localizedMessage": {
                  "type": "string"
                }
              }
            }
          },
          "localizedMessage": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "status"
        ]
      },
      "HttpStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/HttpStatusCode"
          }
        ]
      },
      "ApiRateRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "workspaceId": {
            "type": "integer",
            "format": "int64"
          },
          "rateSheetId": {
            "type": "integer",
            "format": "int64"
          },
          "rateSheetType": {
            "$ref": "#/components/schemas/RateSheetType"
          },
          "costCodeId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "rate": {
            "type": "number"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date"
          },
          "ordinalNumber": {
            "type": "integer",
            "format": "int32"
          },
          "relativePriority": {
            "$ref": "#/components/schemas/RelativePriority",
            "writeOnly": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "integer",
            "format": "int64"
          },
          "updatedBy": {
            "type": "integer",
            "format": "int64"
          }
        },
        "required": [
          "id"
        ]
      },
      "RateSheetType": {
        "type": "string",
        "enum": [
          "billingRate",
          "payRate"
        ]
      },
      "RelativePriority": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "type": {
            "$ref": "#/components/schemas/Type"
          }
        },
        "required": [
          "type"
        ]
      },
      "Type": {
        "type": "string",
        "enum": [
          "before",
          "after"
        ]
      },
      "HttpStatusCode": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean"
          },
          "is1xxInformational": {
            "type": "boolean"
          },
          "is3xxRedirection": {
            "type": "boolean"
          },
          "is4xxClientError": {
            "type": "boolean"
          },
          "is5xxServerError": {
            "type": "boolean"
          },
          "is2xxSuccessful": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "lp-api": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "token"
      }
    }
  }
}
```