## Update a backlog

`PATCH /v1/scrum/backlogs/:id`

Changes the fields of a Scrum project backlog. Partial update — pass only what changes.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Backlog ID, not the group ID. Where to get it — [Scrum backlogs](/docs/scrum/backlogs) |

## Request fields (body)

| Field | Type | Required | Description |
|------|-----|:-----:|---------|
| `groupId` | number | no | Scrum project ID. Group list: [`GET /v1/workgroups`](/docs/entities/workgroups/list) |
| `createdBy` | number | no | Creator user ID. List: [`GET /v1/users`](/docs/entities/users/list) |
| `modifiedBy` | number | no | ID of the user who modified the backlog. List: [`GET /v1/users`](/docs/entities/users/list) |

At least one field is required.

## Examples

### curl — personal key

```bash
curl -X PATCH https://vibecode.bitrix24.com/v1/scrum/backlogs/43 \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "modifiedBy": 1 }'
```

### curl — OAuth application

```bash
curl -X PATCH https://vibecode.bitrix24.com/v1/scrum/backlogs/43 \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "modifiedBy": 1 }'
```

### JavaScript — personal key

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/scrum/backlogs/43', {
  method: 'PATCH',
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ modifiedBy: 1 }),
})

const { data } = await res.json()
console.log(data.modifiedBy)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/scrum/backlogs/43', {
  method: 'PATCH',
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ modifiedBy: 1 }),
})

const { data } = await res.json()
console.log(data.modifiedBy)
```

## Response fields

| Field | Type | Description |
|------|-----|---------|
| `success` | boolean | `true` on successful update |
| `data.id` | number | Backlog ID |
| `data.groupId` | number | Scrum project ID |
| `data.createdBy` | number | Creator user ID |
| `data.modifiedBy` | number | ID of the user who modified the backlog |

## Response example

```json
{
  "success": true,
  "data": {
    "id": 43,
    "groupId": 175,
    "createdBy": 1,
    "modifiedBy": 1
  }
}
```

## Error response example

404 — no backlog with this ID exists:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Backlog not found"
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 400 | `INVALID_PARAMS` | Empty body, a field not listed in the table, or an ID that is not a positive integer |
| 404 | `ENTITY_NOT_FOUND` | No backlog with this `id` exists |
| 422 | `BITRIX_ERROR` | `createdBy user not found` — no user with this ID exists |
| 403 | `SCOPE_DENIED` | The key lacks the `task` scope |
| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is read-only |
| 401 | `TOKEN_MISSING` | The key has no configured tokens |

Full list of common API errors — [Errors](/docs/errors).

## See also

- [Create a backlog](/docs/scrum/backlogs/create)
- [Delete a backlog](/docs/scrum/backlogs/delete)
- [Scrum backlogs](/docs/scrum/backlogs)
