# Make task status default.

`PUT /api/task-statuses/{id}/default`

Authentication: no security requirement declared for this operation.

Parameters:

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

Request body: application/json (required)

Type: object

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

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (optional)
  Type: object

- `organizationId` (optional)
  Type: string

- `sentTo` (optional)
  Type: string

- `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"
  ```

- `name` (optional)
  Type: string

- `value` (optional)
  Type: string

- `description` (optional)
  Type: string

- `order` (optional)
  Type: number

- `icon` (optional)
  Type: string

- `color` (optional)
  Type: string

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

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

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

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

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

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

- `template` (optional)
  Type: string
  
  enum: ["backlog","open","in-progress","ready-for-review","in-review","blocked","done","completed","cancelled","custom"]

- `projectId` (optional)
  Type: string

- `organizationTeamId` (optional)
  Type: string

Responses:

- 200: Task status marked as default

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/task-statuses/string/default' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "deletedAt": "2018-11-21T06:20:32.232Z",
  "createdAt": "2018-11-21T06:20:32.232Z",
  "updatedAt": "2018-11-21T06:20:32.232Z",
  "id": "string",
  "isActive": true,
  "isArchived": false,
  "archivedAt": "2018-11-21T06:20:32.232Z",
  "name": "string",
  "value": "string",
  "description": "string",
  "order": 0,
  "icon": "string",
  "color": "string",
  "isSystem": false,
  "isCollapsed": false,
  "isDefault": false,
  "isTodo": false,
  "isInProgress": false,
  "isDone": false,
  "template": "backlog",
  "projectId": "string",
  "organizationTeamId": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "deletedAt": "2018-11-21T06:20:32.232Z",
  "createdAt": "2018-11-21T06:20:32.232Z",
  "updatedAt": "2018-11-21T06:20:32.232Z",
  "id": "string",
  "isActive": true,
  "isArchived": false,
  "archivedAt": "2018-11-21T06:20:32.232Z",
  "name": "string",
  "value": "string",
  "description": "string",
  "order": 0,
  "icon": "string",
  "color": "string",
  "isSystem": false,
  "isCollapsed": false,
  "isDefault": false,
  "isTodo": false,
  "isInProgress": false,
  "isDone": false,
  "template": "backlog",
  "projectId": "string",
  "organizationTeamId": "string"
}`;

const response = await fetch('http://localhost:3000/api/task-statuses/string/default', {
  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",
  "deletedAt": "2018-11-21T06:20:32.232Z",
  "createdAt": "2018-11-21T06:20:32.232Z",
  "updatedAt": "2018-11-21T06:20:32.232Z",
  "id": "string",
  "isActive": true,
  "isArchived": false,
  "archivedAt": "2018-11-21T06:20:32.232Z",
  "name": "string",
  "value": "string",
  "description": "string",
  "order": 0,
  "icon": "string",
  "color": "string",
  "isSystem": false,
  "isCollapsed": false,
  "isDefault": false,
  "isTodo": false,
  "isInProgress": false,
  "isDone": false,
  "template": "backlog",
  "projectId": "string",
  "organizationTeamId": "string"
}'''

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