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