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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000"}],"reportedPosts":[{"id":0,"organizationId":0,"postId":0,"userId":0,"userName":"String","flagType":"Violation","reportNotes":"String","created":"0001-01-01T00:00:00.0000000","acknowledged":"0001-01-01T00:00:00.0000000","acknowledgedBy":"String","dismissed":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","acknowledged":"0001-01-01T00:00:00.0000000","acknowledgedBy":"String","dismissed":"0001-01-01T00:00:00.0000000","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"}}}