# Create Goal General Setting

`POST /api/goal-general-setting`

Authentication (security requirement alternatives):

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

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

Request body: application/json (required)

Type: object

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

- `maxObjectives` (required)
  Type: number
  
  readOnly: true

- `maxKeyResults` (required)
  Type: number
  
  readOnly: true

- `employeeCanCreateObjective` (required)
  Type: boolean
  
  readOnly: true

- `canOwnObjectives` (required)
  Type: string
  
  enum: ["Employees","Teams","Employees and Teams"]
  
  readOnly: true

- `canOwnKeyResult` (required)
  Type: string
  
  enum: ["Employees","Teams","Employees and Teams"]
  
  readOnly: true

- `krTypeKPI` (required)
  Type: boolean
  
  readOnly: true

- `krTypeTask` (required)
  Type: boolean
  
  readOnly: true

Responses:

- 200: Goal general setting Created successfully

Content type: application/json

Type: object

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

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `maxObjectives` (required)
  Type: number

- `maxKeyResults` (required)
  Type: number

- `employeeCanCreateObjective` (required)
  Type: boolean

- `canOwnObjectives` (required)
  Type: string
  
  enum: ["Employees","Teams","Employees and Teams"]

- `canOwnKeyResult` (required)
  Type: string
  
  enum: ["Employees","Teams","Employees and Teams"]

- `krTypeKPI` (required)
  Type: boolean

- `krTypeTask` (required)
  Type: boolean

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/goal-general-setting' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{}'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/goal-general-setting', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body: '{}',
});

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

### Python

```python
import requests

response = requests.post(
    'http://localhost:3000/api/goal-general-setting',
    data='{}'.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
