| Requires any of the roles: | Worker, Agent, Administrator |
| POST,OPTIONS | /v1/campaigns/{Id}/runs/{RunId}/resend-failed |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CampaignResendRequest
{
public Integer Id = null;
public Integer RunId = null;
public Boolean Preview = null;
public Integer getId() { return Id; }
public CampaignResendRequest setId(Integer value) { this.Id = value; return this; }
public Integer getRunId() { return RunId; }
public CampaignResendRequest setRunId(Integer value) { this.RunId = value; return this; }
public Boolean isPreview() { return Preview; }
public CampaignResendRequest setPreview(Boolean value) { this.Preview = value; return this; }
}
public static class CampaignJsonResponse
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CampaignJsonResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java CampaignResendRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/campaigns/{Id}/runs/{RunId}/resend-failed HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"RunId":0,"Preview":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}