> 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/re-group/perform-re-group-action.md).

# Perform Re-Group Action

## Regroup

> This API is used to regroup order transaction lines into another existing Revenue Contract or into a new Revenue Contract.<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/stamper/v1/rc_regroup/{source_rc_id}":{"post":{"description":"This API is used to regroup order transaction lines into another existing Revenue Contract or into a new Revenue Contract.\n","parameters":[{"name":"source_rc_id","in":"path","required":true,"schema":{"type":"string","title":"Source Rc Id"},"description":"The Source Revenue Contract ID from which user is regrouping the order transaction lines.\n"}],"responses":{"200":{"description":"Regroup","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Message generated after successfully completed regroup action."},"request_id":{"type":"string","description":"A system generated alpha-numeric number."}},"required":["message","request_id"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"source_rc_order_fids":{"type":"array","items":{"type":"string"},"description":"The unique Order Financial IDs of order transaction lines of source Revenue Contract ID user want to regroup."},"comments":{"type":"string","description":"Any relevant comments can be added by user at the time of performing regroup action."},"target_rc":{"type":"string","description":"This is optional field. This can be used when user want to regroup order transaction lines into existing Revenue Contract. If user want to move lines to new contract this field cam be skipped from payload."}},"required":["comments","source_rc_order_fids"]}}},"required":true},"tags":["ReGroup ReAllocate"],"summary":"Regroup","operationId":"regroup_apis_stamper_v1_rc_regroup__source_rc_id__post"}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apis.rightrev.com/rightrev-rest-api/revenue-desk-360/revenue-contract-more-actions/re-group/perform-re-group-action.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
