# Approve or reject a project change request

`PUT /api/timesheet-project-change-request/{id}/review`

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

Request body: application/json (required)

Type: object

Schema: [ReviewTimesheetProjectChangeDTO](https://sourcey-gauzy.pages.dev/api-reference/models/reviewtimesheetprojectchangedto/index.md)

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (required)
  Type: string

- `sentTo` (optional)
  Type: string

- `status` (required)
  Type: string
  
  enum: ["APPROVED","REJECTED"]

- `reviewNote` (optional)
  Type: string
  
  maxLength: 500

Responses:

- 200: The project change request has been reviewed.

- 404: Record not found

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/timesheet-project-change-request/string/review' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "status": "APPROVED",
  "reviewNote": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "status": "APPROVED",
  "reviewNote": "string"
}`;

const response = await fetch('http://localhost:3000/api/timesheet-project-change-request/string/review', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "status": "APPROVED",
  "reviewNote": "string"
}'''

response = requests.put(
    'http://localhost:3000/api/timesheet-project-change-request/string/review',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
