Skip to main content
POST
/
public
/
v1
/
segment-service
/
segments
/
{segment-id}
/
upload
[BETA] Upload users to a segment.
curl --request POST \
  --url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Path Parameters

segment-id
string
required

The external ID of the segment.

Query Parameters

action
enum<string>
default:add

The action to perform on the segment.

Available options:
add,
remove,
replace

Body

multipart/form-data
file
file
required

Response

Successful Response