The segment's id
NP6 API Reference (8.1.0)
This documentation provides comprehensive access to the full range of functionalities offered by the NP6 platform through a standardized RESTful interface.
If you have any questions or need assistance, please contact our support team at https://support.chapsvision.com.
Languages
Servers
Production server
https://api-cm.np6.com
- Production serverhttps://api-cm.np6.com/segments/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-cm.np6.com/segments/{id}' \
-H 'X-Key: string'Response
application/json
{ "type": "static", "id": 41, "name": "static segment", "description": "a description", "creation": "2023-03-01T10:00:00Z", "expiration": "2024-03-01T10:00:00Z", "isTest": false, "targetsCount": 4398 }
- Production serverhttps://api-cm.np6.com/segments/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api-cm.np6.com/segments/{id}' \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"type": "static",
"id": 41,
"name": "an updated name",
"description": "an updated description",
"expiration": "2025-03-01T11:00:00Z"
}'Response
application/json
{ "type": "static", "id": 41, "name": "an updated name segment", "description": "an updated description", "creation": "2023-03-01T11:00:00Z", "expiration": "2025-03-01T11:00:00Z", "isTest": false, "targetsCount": 4398 }
- Production serverhttps://api-cm.np6.com/segments/{id}/targets
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-cm.np6.com/segments/{id}/targets' \
-H 'X-Key: string'Response
application/json
[ "000PKXK4", "000PKXK5", "000PKXK6", "000PKXK7", "000R4EJO", "000R4MG8", "000R4O1C", "000R4S0S", "000R7FNX", "000R7FNY" ]