TechStacks!

<back to all web services

GetOrganizationAdmin

Organization
Requires Authentication
The following routes are available for this service:
GET/orgs/{Id}/admin

export class OrganizationLabel
{
    public slug: string;
    public organizationId: number;
    public description: string;
    public color: string;

    public constructor(init?: Partial<OrganizationLabel>) { (Object as any).assign(this, init); }
}

export class OrganizationMember
{
    public id: number;
    public organizationId: number;
    public userId: number;
    public userName: string;
    public isOwner: boolean;
    public isModerator: boolean;
    public denyAll: boolean;
    public denyPosts: boolean;
    public denyComments: boolean;
    public notes: string;

    public constructor(init?: Partial<OrganizationMember>) { (Object as any).assign(this, init); }
}

export class OrganizationMemberInvite
{
    public id: number;
    public organizationId: number;
    public userId: number;
    public userName: string;
    public dismissed?: string;

    public constructor(init?: Partial<OrganizationMemberInvite>) { (Object as any).assign(this, init); }
}

export enum FlagType
{
    Violation = 'Violation',
    Spam = 'Spam',
    Abusive = 'Abusive',
    Confidential = 'Confidential',
    OffTopic = 'OffTopic',
    Other = 'Other',
}

export class PostReportInfo
{
    public id: number;
    public organizationId: number;
    public postId: number;
    public userId: number;
    public userName: string;
    public flagType: FlagType;
    public reportNotes: string;
    public created: string;
    public acknowledged?: string;
    public acknowledgedBy: string;
    public dismissed?: string;
    public dismissedBy: string;
    public title: string;
    public reportCount: number;
    public createdBy: string;

    public constructor(init?: Partial<PostReportInfo>) { (Object as any).assign(this, init); }
}

export class PostCommentReportInfo
{
    public id: number;
    public organizationId: number;
    public postId: number;
    public postCommentId: number;
    public userId: number;
    public userName: string;
    public flagType: FlagType;
    public reportNotes: string;
    public created: string;
    public acknowledged?: string;
    public acknowledgedBy: string;
    public dismissed?: string;
    public dismissedBy: string;
    public contentHtml: string;
    public reportCount: number;
    public createdBy: string;

    public constructor(init?: Partial<PostCommentReportInfo>) { (Object as any).assign(this, init); }
}

export class GetOrganizationAdminResponse
{
    public labels: OrganizationLabel[];
    public members: OrganizationMember[];
    public memberInvites: OrganizationMemberInvite[];
    public reportedPosts: PostReportInfo[];
    public reportedPostComments: PostCommentReportInfo[];
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<GetOrganizationAdminResponse>) { (Object as any).assign(this, init); }
}

export class GetOrganizationAdmin implements IGet
{
    public id: number;

    public constructor(init?: Partial<GetOrganizationAdmin>) { (Object as any).assign(this, init); }
}

TypeScript 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
		}
	}
}