TechStacks!

<back to all web services

SubscribeToOrganization

User
Requires Authentication
The following routes are available for this service:
PUT/orgs/{OrganizationId}/subscribe
"use strict";
/** @typedef {'Announcement'|'Post'|'Showcase'|'Question'|'Request'} */
export var PostType;
(function (PostType) {
    PostType["Announcement"] = "Announcement"
    PostType["Post"] = "Post"
    PostType["Showcase"] = "Showcase"
    PostType["Question"] = "Question"
    PostType["Request"] = "Request"
})(PostType || (PostType = {}));
/** @typedef {number} */
export var Frequency;
(function (Frequency) {
    Frequency[Frequency["Daily"] = 1] = "Daily"
    Frequency[Frequency["Weekly"] = 7] = "Weekly"
    Frequency[Frequency["Monthly"] = 30] = "Monthly"
    Frequency[Frequency["Quarterly"] = 90] = "Quarterly"
})(Frequency || (Frequency = {}));
export class SubscribeToOrganization {
    /** @param {{organizationId?:number,postTypes?:PostType[],frequency?:Frequency}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    organizationId;
    /** @type {PostType[]} */
    postTypes;
    /** @type {?Frequency} */
    frequency;
}

JavaScript SubscribeToOrganization 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.

PUT /orgs/{OrganizationId}/subscribe HTTP/1.1 
Host: techstacks.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	organizationId: 0,
	postTypes: 
	[
		Announcement
	],
	frequency: 0
}