@R58395
In case for your convenience I did make a detailed test on my side and here are my findings about your question:
@R58395 wrote:
what value and data type do I need to set to be compatible? I am putting numbers in it but it is not working.

1) Yes, it is possible to use a value there instead of going into multiple almost identical action blocks with branches and predefined dropdown values, if you really want to. Here are the values to use, which I tested on my side and I was able to get it to change the test Sharepoint List Item's Approval Status:
It is pretty simple in this case - just use
0 for Pending
1 for Approved
2 for Rejected
Here are my results after testing with example below and when the Approval status was something other than what it was before:
For Pending
0

Result:

For Approved
1

Result:

For Rejected
2

Result:

So in short:
0 - Pending
1 - Approved
2- Rejected
In the above, although I use Compose, if you use a Variable of type Integer it should work, I tested with the below, where a Variable was initialized to value of 1, and then used in the Set content approval status action block, and it worked to change from Pending to Approved:

When I tested the above it worked and changed the test item from Pending, to Approved after running the Flow.
Please note the following caveat:
If setting to Rejected specifically first, then trying to set same item to another status, there will probably be BadGateway and infinite retry and the status will not change, unless using the SharePoint UI to put it back to another status than Rejected first (such as Pending).
However, note that according my testing this behavior is exactly the same even if doing this with the pre-populated values from dropdown, though, by the way!
2) Note that for context, the following is presumed:


The library's "Settings -> Versioning Settings" should be set to Yes for "Require content approval for submitted items?"
@v-yuazh-msft already did really great job explaining these steps in more detail, in their post here:
Flow Issue: Conditions Not Specified
You may either refer to the post above, or alternatively refer to docs.microsoft.com - Require approval of documents in SharePoint using Power Automate
to find out how to go to Settings > Versioning settings > Require content approval for submitted items and set it to Yes, which is required prior to using "Set content approval status" from Power Automate - otherwise, that Action will return with an Error status that "Content moderation is not enabled on the library".
If you encountered any issue using these numbers above, please check the above thoroughly (especially pay attention to what happens if the Item was already rejected for example above) and also check that you are editing the correct item ID. Show the ID column in SharePoint list and then test with hard-coded sample item ID value and also hard-coded value (0,1,2) for Action to make sure it is working, then try it with the dynamic values or expression after that.
During the test, to isolate the cause better, also please make sure to leave Comments field blank, etc. when you are testing as well.
Check if it helps @R58395 - if you use the way above, you can do it without using multiple Action blocks and do it the way that it seems like you prefer most instead.