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

POST /user/organizations HTTP/1.1 
Host: techstacks.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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-01
		}
	],
	subscriptions: 
	[
		{
			id: 0,
			organizationId: 0,
			userId: 0,
			userName: String,
			postTypes: 
			[
				String
			],
			frequencyDays: 0,
			lastSyncedId: 0,
			lastSynced: 0001-01-01,
			created: 0001-01-01
		}
	]
}