Skip to content

Commit e48ba7a

Browse files
authored
chore: Add bulk upgrades in CZ docs (#286)
1 parent 002a2c3 commit e48ba7a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

fern/docs/pages/customization.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,21 @@ The object now references the latest fragment version (`custom_type_fragment/2`)
388388
the optional release notes field is absent, the tenant fragment remains attached,
389389
allowing for future tenant-specific field additions.
390390

391+
#### Bulk upgrades
392+
393+
All objects of a given type can be upgraded to the latest fragment version using the
394+
`objects.bulk-upgrade` API. It is an async API that schedules a job to scan all the
395+
objects of the given type and upgrade them.
396+
397+
```curl {16-18, 21}
398+
curl --location 'https://api.devrev.ai/internal/objects.bulk-upgrade' \
399+
--header 'Content-Type: application/json' \
400+
--header 'Authorization: Bearer <TOKEN>' \
401+
--data '{
402+
"type": "issue"
403+
}
404+
```
405+
391406
## Deprecate custom schema fragments
392407

393408
Custom schema fragments can be deprecated to avoid creating work items using them. The

0 commit comments

Comments
 (0)