Add team_assignment_limit_change activity type to OpenAPI spec#326
Merged
salmanbshah merged 1 commit intomainfrom Nov 10, 2025
Merged
Add team_assignment_limit_change activity type to OpenAPI spec#326salmanbshah merged 1 commit intomainfrom
salmanbshah merged 1 commit intomainfrom
Conversation
faizzed
reviewed
Nov 7, 2025
Contributor
Author
|
Yes, this is for the activity logs endpoint - specifically the |
c75bfc6 to
011e890
Compare
Adds OpenAPI documentation for team assignment limit changes in activity logs API for version 2.14 only. Changes (version 2.14 only): - Adds team_assignment_limit_change to activity_type enum (in alphabetical order) - Adds team (object with id and name) metadata field - Adds team_assignment_limit (nullable integer) metadata field The metadata structure follows the pattern of conversation_assignment_limit and ticket_assignment_limit, storing only the current value rather than both old and new values. Note: This feature is available in version 2.14, not in the unreleased/unstable version. Related PRs: - intercom/intercom#446612 (Updated API presenter implementation) - intercom/intercom#445742 (Initial API presenter implementation) - intercom/intercom#445704 (Event infrastructure) Related Issue: intercom/intercom#445916
011e890 to
33c16a0
Compare
Contributor
Author
|
Fixed! Moved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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