This operation may be refused if the segment is linked to an action
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 DELETE \
'https://api-cm.np6.com/segments/{id}' \
-H 'X-Key: string'- Production serverhttps://api-cm.np6.com/segments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-cm.np6.com/segments \
-H 'X-Key: string'Response
application/json
[ { "type": "static", "id": 41, "name": "static segment", "creation": "2023-03-01T10:00:00Z", "expiration": "2024-03-01T10:00:00Z", "isTest": false, "targetsCount": 4398 }, { "type": "static", "id": 56, "name": "test static segment", "creation": "2023-03-01T10:00:00Z", "expiration": "2024-03-01T10:00:00Z", "isTest": true, "targetsCount": 4 }, { "type": "dynamic", "id": 57, "name": "test dynamic segment", "creation": "2023-03-01T10:00:00Z", "expiration": "2024-03-01T10:00:00Z", "isTest": false, "targetsCount": 4398, "parentId": 41 } ]
- Production serverhttps://api-cm.np6.com/segments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-cm.np6.com/segments \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"type": "static",
"name": "new static segment",
"description": "a description",
"isTest": false
}'Response
application/json
{ "type": "static", "id": 59, "name": "new static segment", "description": "a description", "creation": "2023-03-01T11:00:00Z", "expiration": "2024-03-01T11:00:00Z", "isTest": false, "targetsCount": 0 }