Add team_assignment_limit_change activity type to OpenAPI spec #326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds OpenAPI documentation for the
team_assignment_limit_changeactivity type to API version 2.14.This activity type tracks when team assignment limits are changed by admins, allowing developers to monitor team capacity management changes through the Admin Activity Logs API.
Scope
Version: 2.14 only (not in Unstable/unreleased version)
API Endpoint:
GET /admins/activity_logsChanges
Activity Type Enum
Adds
team_assignment_limit_changeto theactivity_typeenum in theactivity_logschema.Metadata Fields
Adds the following fields to
activity_log_metadata:team(object, nullable)id(integer): The ID of the teamname(string): The name of the teamteam_assignment_limit(integer, nullable)nullif the limit was removed/unsetExample API Response
{ "type": "admin_activity_log_event", "id": "f7bd54f5-3d7e-460b-a5de-9d7ca46c4f51", "performed_by": { "type": "admin", "id": "293", "email": "admin@example.com", "ip": "172.253.116.141" }, "metadata": { "team": { "id": 295, "name": "Support Team" }, "team_assignment_limit": 10 }, "created_at": 1762790574, "activity_type": "team_assignment_limit_change", "activity_description": "Admin changed team assignment limit to 10 for team Support Team." }Unsetting a Limit
When a limit is removed,
team_assignment_limitisnull:{ "metadata": { "team": { "id": 295, "name": "Support Team" }, "team_assignment_limit": null }, "activity_type": "team_assignment_limit_change", "activity_description": "Admin unset team assignment limit for team Support Team." }Pattern Alignment
This follows the established pattern used by similar assignment limit activity types:
admin_conversation_assignment_limit_changewithconversation_assignment_limitfieldadmin_ticket_assignment_limit_changewithticket_assignment_limitfieldAll assignment limit metadata fields store only the current/new value (not old and new), as a single nullable integer.
Verification
✅ Tested with API version 2.14:
Related PRs
Intercom Monolith:
Related Issue:
Review Notes