Segmentation
Attribute domains to segments
Changed onAssign each input domain to the closest segment in a segmentation, with a 0-1 match score. The segmentation must have completed successfully first.
post/v2/segmentation/{segmentation_id}/attribute-domains
Request
- Base URLhttps://api.ocean.io
- URLhttps://api.ocean.io/v2/segmentation/{segmentation_id}/attribute-domains
- Authnone declared
Path parameters
segmentation_idinteger required
Query parameters
apiTokenstring nullable
Headers
x-api-tokenstring nullable
Request body
Example request
{
"domains": [
"domain1.com",
"domain2.com"
]
}Response
Successful Response
Example response
{
"results": [
{
"domain": "domain1.com",
"segmentId": 42,
"score": 0.91
}
],
"totalRequested": 3,
"totalAttributed": 2
}Changes
- info
added the non-success response with the status
- info