TechStacks!

<back to all web services

ImportUserVoiceSuggestion

Requires Authentication
Required role:Import
The following routes are available for this service:
All Verbs/import/uservoice/suggestion
ImportUserVoiceSuggestion Parameters:
NameParameterData TypeRequiredDescription
OrganizationIdqueryintNo
UrlquerystringNo
IdqueryintNo
TopicIdqueryintNo
StatequerystringNo
TitlequerystringNo
SlugquerystringNo
CategoryquerystringNo
TextquerystringNo
FormattedTextquerystringNo
VoteCountqueryintNo
ClosedAtqueryDateTime?No
StatusKeyquerystringNo
StatusHexColorquerystringNo
StatusChangedByqueryUserVoiceUserNo
CreatorqueryUserVoiceUserNo
ResponsequeryUserVoiceCommentNo
CreatedAtqueryDateTimeNo
UpdatedAtqueryDateTimeNo
UserVoiceUser Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
EmailformstringNo
AvatarUrlformstringNo
CreatedAtformDateTimeNo
UpdatedAtformDateTimeNo
UserVoiceComment Parameters:
NameParameterData TypeRequiredDescription
TextformstringNo
FormattedTextformstringNo
CreatedAtformDateTimeNo
CreatorformUserVoiceUserNo
ImportUserVoiceSuggestionResponse Parameters:
NameParameterData TypeRequiredDescription
PostIdformlongNo
PostSlugformstringNo
ResponseStatusformResponseStatusNo

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 /import/uservoice/suggestion HTTP/1.1 
Host: techstacks.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	organizationId: 0,
	url: String,
	id: 0,
	topicId: 0,
	state: String,
	title: String,
	slug: String,
	category: String,
	text: String,
	formattedText: String,
	voteCount: 0,
	closedAt: 0001-01-01,
	statusKey: String,
	statusHexColor: String,
	statusChangedBy: 
	{
		id: 0,
		name: String,
		email: String,
		avatarUrl: String,
		createdAt: 0001-01-01,
		updatedAt: 0001-01-01
	},
	creator: 
	{
		id: 0,
		name: String,
		email: String,
		avatarUrl: String,
		createdAt: 0001-01-01,
		updatedAt: 0001-01-01
	},
	response: 
	{
		text: String,
		formattedText: String,
		createdAt: 0001-01-01,
		creator: 
		{
			id: 0,
			name: String,
			email: String,
			avatarUrl: String,
			createdAt: 0001-01-01,
			updatedAt: 0001-01-01
		}
	},
	createdAt: 0001-01-01,
	updatedAt: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	postId: 0,
	postSlug: String,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}