| GET | /orgs/{Id}/admin |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Labels | form | List<OrganizationLabel> | Yes | |
| Members | form | List<OrganizationMember> | Yes | |
| MemberInvites | form | List<OrganizationMemberInvite> | Yes | |
| ReportedPosts | form | List<PostReportInfo> | Yes | |
| ReportedPostComments | form | List<PostCommentReportInfo> | Yes | |
| ResponseStatus | form | ResponseStatus | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Slug | form | string | Yes | |
| OrganizationId | form | int | No | |
| Description | form | string | Yes | |
| Color | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| OrganizationId | form | int | No | |
| UserId | form | int | No | |
| UserName | form | string | Yes | |
| IsOwner | form | bool | No | |
| IsModerator | form | bool | No | |
| DenyAll | form | bool | No | |
| DenyPosts | form | bool | No | |
| DenyComments | form | bool | No | |
| Notes | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| OrganizationId | form | int | No | |
| UserId | form | int | No | |
| UserName | form | string | Yes | |
| Dismissed | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| OrganizationId | form | int | No | |
| PostId | form | long | No | |
| UserId | form | int | No | |
| UserName | form | string | Yes | |
| FlagType | form | FlagType | No | |
| ReportNotes | form | string | Yes | |
| Created | form | DateTime | No | |
| Acknowledged | form | DateTime? | No | |
| AcknowledgedBy | form | string | Yes | |
| Dismissed | form | DateTime? | No | |
| DismissedBy | form | string | Yes | |
| Title | form | string | Yes | |
| ReportCount | form | int | No | |
| CreatedBy | form | string | Yes |
| Violation | Violates Rules or Conduct |
| Spam | This is Spam |
| Abusive | This is abusive or harmful |
| Confidential | This contains something private that shouldn't be posted in public |
| OffTopic | This is off topic |
| Other | Other Issues |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| OrganizationId | form | int | No | |
| PostId | form | long | No | |
| PostCommentId | form | long | No | |
| UserId | form | int | No | |
| UserName | form | string | Yes | |
| FlagType | form | FlagType | No | |
| ReportNotes | form | string | Yes | |
| Created | form | DateTime | No | |
| Acknowledged | form | DateTime? | No | |
| AcknowledgedBy | form | string | Yes | |
| Dismissed | form | DateTime? | No | |
| DismissedBy | form | string | Yes | |
| ContentHtml | form | string | Yes | |
| ReportCount | form | int | No | |
| CreatedBy | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /orgs/{Id}/admin HTTP/1.1
Host: techstacks.io
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
labels:
[
{
slug: String,
organizationId: 0,
description: String,
color: String
}
],
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
}
],
reportedPosts:
[
{
id: 0,
organizationId: 0,
postId: 0,
userId: 0,
userName: String,
flagType: Violation,
reportNotes: String,
created: 0001-01-01,
acknowledged: 0001-01-01,
acknowledgedBy: String,
dismissed: 0001-01-01,
dismissedBy: String,
title: String,
reportCount: 0,
createdBy: String
}
],
reportedPostComments:
[
{
id: 0,
organizationId: 0,
postId: 0,
postCommentId: 0,
userId: 0,
userName: String,
flagType: Violation,
reportNotes: String,
created: 0001-01-01,
acknowledged: 0001-01-01,
acknowledgedBy: String,
dismissed: 0001-01-01,
dismissedBy: String,
contentHtml: String,
reportCount: 0,
createdBy: String
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}