## Set Environment for a Service

**post** `/projects/{project_id}/services/{service_id}/setEnvironment`

Sets the environment type for the service.

### Path Parameters

- `project_id: string`

- `service_id: string`

### Body Parameters

- `environment: "PROD" or "DEV"`

  The target environment for the service.

  - `"PROD"`

  - `"DEV"`

### Returns

- `message: optional string`

### Example

```http
curl http://localhost:8080/projects/$PROJECT_ID/services/$SERVICE_ID/setEnvironment \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $TIGER_CLOUD_API_KEY" \
    -d '{
          "environment": "PROD"
        }'
```

#### Response

```json
{
  "message": "Action completed successfully."
}
```
