| DELETE | /organisations/{Id}/blocklist |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class RemoveUserFromBlockListRequest extends DeleteOperationUnTenanted<BlockListResponse>
{
public String id = null;
public String userId = null;
public String getId() { return id; }
public RemoveUserFromBlockListRequest setId(String value) { this.id = value; return this; }
public String getUserId() { return userId; }
public RemoveUserFromBlockListRequest setUserId(String value) { this.userId = value; return this; }
}
public static class DeleteOperationUnTenanted<TResponse> implements IDelete
{
}
public static class BlockListResponse
{
public ResponseStatus responseStatus = null;
public OrganisationNotificationSettings notificationSettings = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public BlockListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public OrganisationNotificationSettings getNotificationSettings() { return notificationSettings; }
public BlockListResponse setNotificationSettings(OrganisationNotificationSettings value) { this.notificationSettings = value; return this; }
}
public static class OrganisationNotificationSettings implements IIdentifiableResource
{
public ArrayList<String> warningNotificationRoles = null;
public ArrayList<String> jobFinishedNotificationRoles = null;
public ArrayList<String> userIdBlockList = null;
public String id = null;
public ArrayList<String> getWarningNotificationRoles() { return warningNotificationRoles; }
public OrganisationNotificationSettings setWarningNotificationRoles(ArrayList<String> value) { this.warningNotificationRoles = value; return this; }
public ArrayList<String> getJobFinishedNotificationRoles() { return jobFinishedNotificationRoles; }
public OrganisationNotificationSettings setJobFinishedNotificationRoles(ArrayList<String> value) { this.jobFinishedNotificationRoles = value; return this; }
public ArrayList<String> getUserIdBlockList() { return userIdBlockList; }
public OrganisationNotificationSettings setUserIdBlockList(ArrayList<String> value) { this.userIdBlockList = value; return this; }
public String getId() { return id; }
public OrganisationNotificationSettings setId(String value) { this.id = value; return this; }
}
}
Java RemoveUserFromBlockListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /organisations/{Id}/blocklist HTTP/1.1
Host: staging-api.foundrylab.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
notificationSettings:
{
warningNotificationRoles:
[
String
],
jobFinishedNotificationRoles:
[
String
],
userIdBlockList:
[
String
],
id: String
}
}