Shorter Loop API Documentation
API ReferencesRelease NotesHelp CenterKnowledge Base
API ReferencesRelease NotesHelp CenterKnowledge Base
Sign In
  1. Segments
  • Getting started
    • Welcome to the Shorter Loop API Portal
    • Authentication
    • Base URL
    • 2 way Jira Integration
    • Create webhook in Shorter Loop
  • Metrics
    • Create a Key Performance Indicator (KPI)
      POST
    • Update the Key Performance Indicator (KPI)
      PUT
    • Retrieve KPIs not linked to specific product backlog items
      GET
    • Insert KPI's records (Body JSON Payload)
      POST
    • Insert KPI's records (Upload CSV)
      POST
    • Insert KPI's records (Upload JSON)
      POST
  • Idea manager
    • Feedback Collection
      • Create idea and issue
      • Retrieves a list of categories
      • Modify feedback item
      • Removes a feedback item
      • Upvote or downvote a work item
      • Retrieve a feedback item
      • Get comments for a feedback item.
      • Reply to a comment
      • Modify a comment
      • Bulk create feedback items: CSV and JSON
    • Segments
      • Retrieves a list of segments without users
        GET
      • Create segment
        POST
      • Modify a segment
        PUT
      • Removes a segment
        DELETE
      • Bulk create users to a segment
        POST
      • Manage user segments: move or remove
        PUT
      • Retrieve segments with users
        GET
      • Retrieve segment with users
        GET
      • Import Users (CSV/JSON)
        POST
      • Sending email to segment members
        POST
      • Sending email to selected idm members
        POST
    • Bulk create idea manager members
      POST
    • Import Users (CSV/JSON) in IDM
      POST
    • Bulk re-invite in IDM
      PUT
  • Backlog Management
    • Epics
      • Create a new epic
      • Modify an epic
      • Retrieve details of the epic
      • Removes the epic
    • Features
      • Create a new feature
      • Modify a feature
      • Retrieve details of the feature
      • Removes the feature
    • User stories
      • Create a new user story
      • Modify a user story
      • Retrieve user story
      • Removes the user story
    • Assets
      • Attaches files to the workitem
      • Removes an asset
      • Retrieve attachments for the backlog workitem with ID
    • Product Tags
      • Retrieves tags for initiative
    • Teams
      • Get teams and members for product
    • Personas
      • Retrieve personas associated with initiative
    • Get whole backlog tree
  • Strategy Board
    • Experiment
      • Create a new experiemnt variant
    • Solutions
      • Versions
        • Storymap versions api documentation
        • Create a version
        • Update version
        • Removes a version
        • Retrieve versions
      • Get all storymaps for solution
  • Persona Board V2
    • Segments
      • Permanently deletes a segment
      • Creates a new option
      • Retrieve a list of segments
      • Retrieve a segment
      • Create a segment
      • Removes a segment
      • Removes a segment option
      • Detaches a segment from the persona
      • Update segment option
    • Custom fields
      • Removes a custom field
      • Retrieve a list of custom fields
      • Retrieve a custom field
      • Create a custom field
      • Removes a custom field option
      • Detaches a custom field from persona
      • Retrieve custom fields excluding persona
      • Creates a new option
      • Permanently deletes a custom field
      • Update custom field
      • Update custom field option
      • Attach a custom field to a persona
    • Create opportunities from summary
    • Retrieve notes
    • Retrieve persona
    • Retrieve experiments for Persona
    • Create
    • Retrieve
  • DocsHub
    • Retrieve categories with templates
    • Retrieve a template based on category
    • Create copy of template while using template
  1. Segments

Manage user segments: move or remove

PUT
/api/v2/segments/19/segment-users/15

Endpoint#

/:id/manage-users/:toSegmentId?#

This endpoint is responsible for managing user assignments within segments. It handles two distinct operations based on the presence of the toSegmentId parameter.

Operations#

1.
Move Users to Another Segment
When toSegmentId is Provided:
This operation transfers users from the current segment identified by :id to the new segment specified by toSegmentId.
Example Request:
POST /api/v2/segments/19/manage-users/15
Parameters:
segmentId (Number): The ID of the segment from which users will be moved. In this example, it is 19.
toSegmentId (Number): The ID of the target segment to which users will be moved. In this example, it is 15.
Behavior:
The system will update the segment association for the specified users, moving them to the new segment.
2.
Remove Users from Current Segment
When toSegmentId is Not Provided:
This operation removes the specified users from the segment identified by :id.
Example Request:
POST /api/v2/segments/19/manage-users
Parameters:
segmentId (Number): The ID of the segment from which users will be removed. In this example, it is 19.
Behavior:
The system will effectively delete the users' association with the current segment, ensuring they are no longer part of it.

Summary#

This endpoint provides a flexible mechanism for both moving users between segments and removing users from segments, making it an essential tool for effective user segment management.

Request

Header Params

Body Params application/json

Example
{
  "users": [1685, 1684]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.shorterloop.com/api/v2/segments/19/segment-users/15' \
--header 'Authorization;' \
--header 'initiativeId;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "users": [1685, 1684]
}'

Responses

🟢200OK
application/json
Body

Examples
{
    "success": true,
    "message": "Users moved to segment successfully",
    "data": {
        "count": 0
    }
}
Modified at 2024-10-29 00:43:14
Previous
Bulk create users to a segment
Next
Retrieve segments with users
Built with