TechStacks!

<back to all web services

SubscribeToOrganization

User
Requires Authentication
The following routes are available for this service:
PUT/orgs/{OrganizationId}/subscribe
namespace TechStacks.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type Frequency =
        | Daily = 1
        | Weekly = 7
        | Monthly = 30
        | Quarterly = 90

    [<AllowNullLiteral>]
    type SubscribeToOrganization() = 
        interface IPut
        member val OrganizationId:Int32 = new Int32() with get,set
        member val PostTypes:PostType[] = [||] with get,set
        member val Frequency:Nullable<Frequency> = new Nullable<Frequency>() with get,set

    type PostType =
        | Announcement = 0
        | Post = 1
        | Showcase = 2
        | Question = 3
        | Request = 4

F# SubscribeToOrganization 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.

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

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