TechStacks!

<back to all web services

GetOrganizationAdmin

Organization
Requires Authentication
The following routes are available for this service:
GET/orgs/{Id}/admin
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetOrganizationAdmin : IGet
{
    open var id:Int? = null
}

open class GetOrganizationAdminResponse
{
    open var labels:ArrayList<OrganizationLabel>? = null
    open var members:ArrayList<OrganizationMember>? = null
    open var memberInvites:ArrayList<OrganizationMemberInvite>? = null
    open var reportedPosts:ArrayList<PostReportInfo>? = null
    open var reportedPostComments:ArrayList<PostCommentReportInfo>? = null
    open var responseStatus:ResponseStatus? = null
}

open class OrganizationLabel
{
    open var slug:String? = null
    open var organizationId:Int? = null
    open var description:String? = null
    open var color:String? = null
}

open class OrganizationMember
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var isOwner:Boolean? = null
    open var isModerator:Boolean? = null
    open var denyAll:Boolean? = null
    open var denyPosts:Boolean? = null
    open var denyComments:Boolean? = null
    open var notes:String? = null
}

open class OrganizationMemberInvite
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var dismissed:Date? = null
}

open class PostReportInfo
{
    open var id:Long? = null
    open var organizationId:Int? = null
    open var postId:Long? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var flagType:FlagType? = null
    open var reportNotes:String? = null
    open var created:Date? = null
    open var acknowledged:Date? = null
    open var acknowledgedBy:String? = null
    open var dismissed:Date? = null
    open var dismissedBy:String? = null
    open var title:String? = null
    open var reportCount:Int? = null
    open var createdBy:String? = null
}

enum class FlagType
{
    Violation,
    Spam,
    Abusive,
    Confidential,
    OffTopic,
    Other,
}

open class PostCommentReportInfo
{
    open var id:Long? = null
    open var organizationId:Int? = null
    open var postId:Long? = null
    open var postCommentId:Long? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var flagType:FlagType? = null
    open var reportNotes:String? = null
    open var created:Date? = null
    open var acknowledged:Date? = null
    open var acknowledgedBy:String? = null
    open var dismissed:Date? = null
    open var dismissedBy:String? = null
    open var contentHtml:String? = null
    open var reportCount:Int? = null
    open var createdBy:String? = null
}

Kotlin GetOrganizationAdmin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /orgs/{Id}/admin HTTP/1.1 
Host: techstacks.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	labels: 
	[
		{
			slug: String,
			organizationId: 0,
			description: String,
			color: String
		}
	],
	members: 
	[
		{
			id: 0,
			organizationId: 0,
			userId: 0,
			userName: String,
			isOwner: False,
			isModerator: False,
			denyAll: False,
			denyPosts: False,
			denyComments: False,
			notes: String
		}
	],
	memberInvites: 
	[
		{
			id: 0,
			organizationId: 0,
			userId: 0,
			userName: String,
			dismissed: 0001-01-01
		}
	],
	reportedPosts: 
	[
		{
			id: 0,
			organizationId: 0,
			postId: 0,
			userId: 0,
			userName: String,
			flagType: Violation,
			reportNotes: String,
			created: 0001-01-01,
			acknowledged: 0001-01-01,
			acknowledgedBy: String,
			dismissed: 0001-01-01,
			dismissedBy: String,
			title: String,
			reportCount: 0,
			createdBy: String
		}
	],
	reportedPostComments: 
	[
		{
			id: 0,
			organizationId: 0,
			postId: 0,
			postCommentId: 0,
			userId: 0,
			userName: String,
			flagType: Violation,
			reportNotes: String,
			created: 0001-01-01,
			acknowledged: 0001-01-01,
			acknowledgedBy: String,
			dismissed: 0001-01-01,
			dismissedBy: String,
			contentHtml: String,
			reportCount: 0,
			createdBy: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}