All Verbs | /user/organizations |
---|
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 class OrganizationSubscription
{
public id: number;
public organizationId: number;
public userId: number;
public userName: string;
public postTypes: string[];
public frequencyDays?: number;
public lastSyncedId?: number;
public lastSynced?: string;
public created: string;
public constructor(init?: Partial<OrganizationSubscription>) { (Object as any).assign(this, init); }
}
export class GetUserOrganizationsResponse
{
public members: OrganizationMember[];
public memberInvites: OrganizationMemberInvite[];
public subscriptions: OrganizationSubscription[];
public constructor(init?: Partial<GetUserOrganizationsResponse>) { (Object as any).assign(this, init); }
}
export class GetUserOrganizations implements IGet
{
public constructor(init?: Partial<GetUserOrganizations>) { (Object as any).assign(this, init); }
}
TypeScript GetUserOrganizations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /user/organizations HTTP/1.1
Host: techstacks.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"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"}],"subscriptions":[{"id":0,"organizationId":0,"userId":0,"userName":"String","postTypes":["String"],"frequencyDays":0,"lastSyncedId":0,"lastSynced":"0001-01-01T00:00:00.0000000","created":"0001-01-01T00:00:00.0000000"}]}