{"basePath":"https://wsnew.actimizer.com/api","resourcePath":"/leadsegments","apis":[{"path":"/leadsegments","description":"Gets all lead segments","operations":[{"httpMethod":"GET","nickname":"getleadsegments","summary":"Gets all lead segments","parameters":[],"responseClass":"Array[LeadSegment]","errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/leadsegments/{UniqueId}/leads","description":"Add leads to the lead segment","operations":[{"httpMethod":"POST","nickname":"postleadsegmentsUniqueIdleads","summary":"Add leads to the lead segment","parameters":[{"name":"UniqueId","description":"Unique id of the lead segment","paramType":"path","allowMultiple":false,"required":true,"dataType":"string"},{"paramType":"body","allowMultiple":false,"required":false,"dataType":"AddLeadsToLeadSegment"}],"errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]},{"path":"/leadsegments/{UniqueId}/leads","description":"Removes leads from the lead segment","operations":[{"httpMethod":"DELETE","nickname":"deleteleadsegmentsUniqueIdleads","summary":"Removes leads from the lead segment","parameters":[{"name":"UniqueId","description":"Unique id of the lead segment","paramType":"path","allowMultiple":false,"required":true,"dataType":"string"},{"paramType":"body","allowMultiple":false,"required":false,"dataType":"RemoveLeadsFromLeadSegment"}],"responseClass":"Array[LeadSegment]","errorResponses":[{"code":200,"reason":"Request was processed without errors."},{"code":400,"reason":"Error in request."},{"code":401,"reason":"Authentication failed. Read more about <a href=\"#doc:about_authentication\">authentication</a>."},{"code":403,"reason":"Requested resource is not accessible using those credentials."},{"code":406,"reason":"Accepted response mime types are not supported."},{"code":429,"reason":"Too many requests. Read more about <a href=\"#doc:about_rate_limiting\">rate limiting</a>."},{"code":500,"reason":"Something broke."}]}]}],"models":{"GetLeadSegments":{"id":"GetLeadSegments","properties":{}},"AddLeadsToLeadSegment":{"id":"AddLeadsToLeadSegment","properties":{"uniqueId":{"type":"string","required":true},"leadUniqueIds":{"description":"Array of the lead unique ids to addb","type":"Array","items":{"type":"string"},"required":true}}},"RemoveLeadsFromLeadSegment":{"id":"RemoveLeadsFromLeadSegment","properties":{"uniqueId":{"type":"string","required":true},"leadUniqueIds":{"description":"Array of the lead unique ids to remove","type":"Array","items":{"type":"string"},"required":true}}},"LeadSegment":{"id":"LeadSegment","properties":{"uniqueId":{"type":"string","required":true},"name":{"type":"string","required":true},"isActive":{"type":"boolean","required":true},"activeFrom":{"type":"Date","required":false},"activeTill":{"type":"Date","required":false},"goalTargetValue":{"type":"int","required":false},"goalCurrentValue":{"type":"int","required":true}}}}}