# PUT /api/integration/ever-async/settings

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `organizationId` (query, string, required)
  Type: string

Request body: application/json (required)

Type: object

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

- `serverUrl` (optional)
  Type: string
  
  Public HTTPS URL of the Ever Async server
  
  Example:
  
  ```json
  "https://api-async.ever.co"
  ```

- `userMappings` (optional)
  Type: array
  
  Items:
    Reference: [EverAsyncUserMappingDto](https://sourcey-gauzy.pages.dev/api-reference/models/everasyncusermappingdto/index.md); Type: object

- `projectIds` (optional)
  Type: array
  
  Projects whose tasks may be read. Empty means no tasks.
  
  Items:
    Type: string

- `isEnabled` (optional)
  Type: boolean

Responses:

- 200: 

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/integration/ever-async/settings?organizationId=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "serverUrl": "https://api-async.ever.co",
  "userMappings": [
    {
      "channel": "slack",
      "workspace": "string",
      "chatUserId": "U0123ABC",
      "employeeId": "b1f2c3d4-0000-0000-0000-000000000000"
    }
  ],
  "projectIds": [
    "string"
  ],
  "isEnabled": true
}'
```

### JavaScript

```javascript
const body = `{
  "serverUrl": "https://api-async.ever.co",
  "userMappings": [
    {
      "channel": "slack",
      "workspace": "string",
      "chatUserId": "U0123ABC",
      "employeeId": "b1f2c3d4-0000-0000-0000-000000000000"
    }
  ],
  "projectIds": [
    "string"
  ],
  "isEnabled": true
}`;

const response = await fetch('http://localhost:3000/api/integration/ever-async/settings?organizationId=string', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

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

### Python

```python
import requests

body = '''{
  "serverUrl": "https://api-async.ever.co",
  "userMappings": [
    {
      "channel": "slack",
      "workspace": "string",
      "chatUserId": "U0123ABC",
      "employeeId": "b1f2c3d4-0000-0000-0000-000000000000"
    }
  ],
  "projectIds": [
    "string"
  ],
  "isEnabled": true
}'''

response = requests.put(
    'http://localhost:3000/api/integration/ever-async/settings?organizationId=string',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
