TechStacks!

<back to all web services

GetUserOrganizations

Posts
Requires Authentication
The following routes are available for this service:
All Verbs/user/organizations
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetUserOrganizations : IGet
{
}

open class GetUserOrganizationsResponse
{
    open var members:ArrayList<OrganizationMember>? = null
    open var memberInvites:ArrayList<OrganizationMemberInvite>? = null
    open var subscriptions:ArrayList<OrganizationSubscription>? = null
}

open class OrganizationMember
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var isOwner:Boolean? = null
    open var isModerator:Boolean? = null
    open var denyAll:Boolean? = null
    open var denyPosts:Boolean? = null
    open var denyComments:Boolean? = null
    open var notes:String? = null
}

open class OrganizationMemberInvite
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var dismissed:Date? = null
}

open class OrganizationSubscription
{
    open var id:Long? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var postTypes:ArrayList<String>? = null
    open var frequencyDays:Int? = null
    open var lastSyncedId:Long? = null
    open var lastSynced:Date? = null
    open var created:Date? = null
}

Kotlin GetUserOrganizations 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.

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"}]}