Skip to main content

Bulk insert identities (overwrite)

POST 

https://edge.api.flagsmith.com/api/v1/bulk-identities

Bulk uploading identities and traits. If there is an existing identity, using POST will overwrite the existing identity with the data from the request.

It has a limit of 100 identities per request.

Request

Body

    data object[]
  • Array [
  • traits object[]
  • Array [
  • trait_key string
    Example: Name
    trait_value objectnullable
    oneOf
    string
    Example: B.A. Baracus
  • ]
  • identifier string
  • ]

Responses

Accepted

Authorization: X-Environment-Key

name: X-Environment-Keytype: apiKeyin: header
import http.client
import json

conn = http.client.HTTPSConnection("edge.api.flagsmith.com")
payload = json.dumps({})
headers = {
'Content-Type': 'application/json',
'X-Environment-Key': '<API_KEY_VALUE>'
}
conn.request("POST", "/api/v1/bulk-identities", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://edge.api.flagsmith.com/api/v1
Auth
Body
{}
ResponseClear

Click the Send API Request button above and see the response here!