> For the complete documentation index, see [llms.txt](https://apis.rightrev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.rightrev.com/rightrev-rest-api/revenue-desk-360/revenue-contract-more-actions/edit-lines.md).

# Edit Lines

## Edit Order Lines

> This API is used to edit custom fields data on revenue contract lines.<br>

```json
{"openapi":"3.1.0","info":{"title":"RightRev API(s)","version":"1.0.0"},"servers":[{"description":"RightRev APP Server","url":"https://{realm}.{env}.rightrev.cloud/","variables":{"env":{"default":"{env}"},"realm":{"default":"{realm}"}}},{"description":"RightRev Auth Server","url":"https://authn.{env}.rightrev.cloud/auth/realms/{realm}/protocol/openid-connect/","variables":{"env":{"default":"{env}"},"realm":{"default":"{realm}"}}}],"security":[],"paths":{"/apis/genie/v1/edit-order-lines":{"patch":{"description":"This API is used to edit custom fields data on revenue contract lines.\n","responses":{"200":{"description":"Edit Custom Fields on Order Lines","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Displays the outcome of the action. It is commonly used to provide success confirmations, error details, or other informational responses from the API after the operation is executed."}},"required":["message"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rc_id":{"type":"string","description":"Provide revenue contract ID"},"edit_comments":{"type":"string","description":"provide comments to be added for edit lines"},"line_edits":{"type":"object","properties":{"OID00021":{"type":"object","properties":{"new_value":{"type":"object","properties":{"custom_string_field":{"type":"string","description":"Name of the custom field"}},"required":["custom_string_field"],"description":"New value to be updated for custom field"},"old_value":{"type":"object","properties":{"custom_string_field":{"type":"string","description":"Name of the custom field"}},"required":["custom_string_field"],"description":"Old value of custom field"}},"required":["new_value","old_value"],"description":"Description of Order Financial ID"}},"required":["OID00021"],"description":"Description of Old & New value on line edit."}},"required":["edit_comments","line_edits","rc_id"]}}},"required":true},"tags":["Transactions"],"summary":"Edit Order Lines","operationId":"edit_order_lines_apis_genie_v1_edit_order_lines_patch"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apis.rightrev.com/rightrev-rest-api/revenue-desk-360/revenue-contract-more-actions/edit-lines.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
