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 {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;
}
/** @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 = {}));

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

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

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