TechStacks!

<back to all web services

GetOrganizationAdmin

Organization
Requires Authentication
The following routes are available for this service:
GET/orgs/{Id}/admin
"use strict";
export class OrganizationLabel {
    /** @param {{slug?:string,organizationId?:number,description?:string,color?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    slug;
    /** @type {number} */
    organizationId;
    /** @type {string} */
    description;
    /** @type {string} */
    color;
}
export class OrganizationMember {
    /** @param {{id?:number,organizationId?:number,userId?:number,userName?:string,isOwner?:boolean,isModerator?:boolean,denyAll?:boolean,denyPosts?:boolean,denyComments?:boolean,notes?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    organizationId;
    /** @type {number} */
    userId;
    /** @type {string} */
    userName;
    /** @type {boolean} */
    isOwner;
    /** @type {boolean} */
    isModerator;
    /** @type {boolean} */
    denyAll;
    /** @type {boolean} */
    denyPosts;
    /** @type {boolean} */
    denyComments;
    /** @type {string} */
    notes;
}
export class OrganizationMemberInvite {
    /** @param {{id?:number,organizationId?:number,userId?:number,userName?:string,dismissed?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    organizationId;
    /** @type {number} */
    userId;
    /** @type {string} */
    userName;
    /** @type {?string} */
    dismissed;
}
/** @typedef {'Violation'|'Spam'|'Abusive'|'Confidential'|'OffTopic'|'Other'} */
export var FlagType;
(function (FlagType) {
    FlagType["Violation"] = "Violation"
    FlagType["Spam"] = "Spam"
    FlagType["Abusive"] = "Abusive"
    FlagType["Confidential"] = "Confidential"
    FlagType["OffTopic"] = "OffTopic"
    FlagType["Other"] = "Other"
})(FlagType || (FlagType = {}));
export class PostReportInfo {
    /** @param {{id?:number,organizationId?:number,postId?:number,userId?:number,userName?:string,flagType?:FlagType,reportNotes?:string,created?:string,acknowledged?:string,acknowledgedBy?:string,dismissed?:string,dismissedBy?:string,title?:string,reportCount?:number,createdBy?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    organizationId;
    /** @type {number} */
    postId;
    /** @type {number} */
    userId;
    /** @type {string} */
    userName;
    /** @type {FlagType} */
    flagType;
    /** @type {string} */
    reportNotes;
    /** @type {string} */
    created;
    /** @type {?string} */
    acknowledged;
    /** @type {string} */
    acknowledgedBy;
    /** @type {?string} */
    dismissed;
    /** @type {string} */
    dismissedBy;
    /** @type {string} */
    title;
    /** @type {number} */
    reportCount;
    /** @type {string} */
    createdBy;
}
export class PostCommentReportInfo {
    /** @param {{id?:number,organizationId?:number,postId?:number,postCommentId?:number,userId?:number,userName?:string,flagType?:FlagType,reportNotes?:string,created?:string,acknowledged?:string,acknowledgedBy?:string,dismissed?:string,dismissedBy?:string,contentHtml?:string,reportCount?:number,createdBy?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    organizationId;
    /** @type {number} */
    postId;
    /** @type {number} */
    postCommentId;
    /** @type {number} */
    userId;
    /** @type {string} */
    userName;
    /** @type {FlagType} */
    flagType;
    /** @type {string} */
    reportNotes;
    /** @type {string} */
    created;
    /** @type {?string} */
    acknowledged;
    /** @type {string} */
    acknowledgedBy;
    /** @type {?string} */
    dismissed;
    /** @type {string} */
    dismissedBy;
    /** @type {string} */
    contentHtml;
    /** @type {number} */
    reportCount;
    /** @type {string} */
    createdBy;
}
export class GetOrganizationAdminResponse {
    /** @param {{labels?:OrganizationLabel[],members?:OrganizationMember[],memberInvites?:OrganizationMemberInvite[],reportedPosts?:PostReportInfo[],reportedPostComments?:PostCommentReportInfo[],responseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {OrganizationLabel[]} */
    labels;
    /** @type {OrganizationMember[]} */
    members;
    /** @type {OrganizationMemberInvite[]} */
    memberInvites;
    /** @type {PostReportInfo[]} */
    reportedPosts;
    /** @type {PostCommentReportInfo[]} */
    reportedPostComments;
    /** @type {ResponseStatus} */
    responseStatus;
}
export class GetOrganizationAdmin {
    /** @param {{id?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
}

JavaScript GetOrganizationAdmin DTOs

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

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}