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.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

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

    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[] = null with get,set
        member val Frequency:Nullable<Frequency> = new Nullable<Frequency>() with get,set

F# SubscribeToOrganization DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

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