Affluenza REST API

<back to all web services

PortfolioPutRequest

The following routes are available for this service:
PUT,OPTIONS/portfolios/{PortfolioId}

To override the Content-type in your clients 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 /jsv/reply/PortfolioPutRequest HTTP/1.1 
Host: www.plusrated.com 
Content-Type: text/jsv
Content-Length: length

{
	portfolioId: 00000000000000000000000000000000,
	portfolio: 
	{
		name: String,
		description: String,
		parentId: 00000000000000000000000000000000,
		customerId: 00000000000000000000000000000000,
		createdOn: 0001-01-01,
		createdBy: 00000000000000000000000000000000,
		createdByName: String,
		modifiedOn: 0001-01-01,
		modifiedBy: 00000000000000000000000000000000,
		portfolioChilds: 
		[
			{
				name: String,
				description: String,
				parentId: 00000000000000000000000000000000,
				customer: 
				{
					parentId: 00000000000000000000000000000000,
					fancyName: String,
					corporateName: String,
					cnpj: String,
					street: String,
					number: 0,
					complement: String,
					district: String,
					zipCode: String,
					observation: String,
					createDate: 0001-01-01,
					updateDate: 0001-01-01,
					sysAdmin: False,
					activity: 
					{
						name: String,
						active: False,
						id: 0
					},
					city: 
					{
						name: String,
						state: 
						{
							name: String,
							acronym: String,
							country: 
							{
								name: String,
								id: 0
							},
							id: 0
						},
						id: 0
					},
					state: 
					{
						name: String,
						acronym: String,
						country: 
						{
							name: String,
							id: 0
						},
						id: 0
					},
					country: 
					{
						name: String,
						id: 0
					},
					status: Ative,
					id: 00000000000000000000000000000000
				},
				createdOn: 0001-01-01,
				createdBy: 00000000000000000000000000000000,
				createdByName: String,
				modifiedOn: 0001-01-01,
				modifiedBy: 00000000000000000000000000000000,
				portfolioChilds: 
				[
					{
						name: String,
						description: String,
						parentId: 00000000000000000000000000000000,
						customer: 
						{
							parentId: 00000000000000000000000000000000,
							fancyName: String,
							corporateName: String,
							cnpj: String,
							street: String,
							number: 0,
							complement: String,
							district: String,
							zipCode: String,
							observation: String,
							createDate: 0001-01-01,
							updateDate: 0001-01-01,
							sysAdmin: False,
							activity: 
							{
								name: String,
								active: False,
								id: 0
							},
							city: 
							{
								name: String,
								state: 
								{
									name: String,
									acronym: String,
									country: 
									{
										name: String,
										id: 0
									},
									id: 0
								},
								id: 0
							},
							state: 
							{
								name: String,
								acronym: String,
								country: 
								{
									name: String,
									id: 0
								},
								id: 0
							},
							country: 
							{
								name: String,
								id: 0
							},
							status: Ative,
							id: 00000000000000000000000000000000
						},
						createdOn: 0001-01-01,
						createdBy: 00000000000000000000000000000000,
						createdByName: String,
						modifiedOn: 0001-01-01,
						modifiedBy: 00000000000000000000000000000000,
						portfolioChilds: 
						[
							{
								name: String,
								description: String,
								parentId: 00000000000000000000000000000000,
								customer: 
								{
									parentId: 00000000000000000000000000000000,
									fancyName: String,
									corporateName: String,
									cnpj: String,
									street: String,
									number: 0,
									complement: String,
									district: String,
									zipCode: String,
									observation: String,
									createDate: 0001-01-01,
									updateDate: 0001-01-01,
									sysAdmin: False,
									activity: 
									{
										name: String,
										active: False,
										id: 0
									},
									city: 
									{
										name: String,
										state: 
										{
											name: String,
											acronym: String,
											country: 
											{
												name: String,
												id: 0
											},
											id: 0
										},
										id: 0
									},
									state: 
									{
										name: String,
										acronym: String,
										country: 
										{
											name: String,
											id: 0
										},
										id: 0
									},
									country: 
									{
										name: String,
										id: 0
									},
									status: Ative,
									id: 00000000000000000000000000000000
								},
								createdOn: 0001-01-01,
								createdBy: 00000000000000000000000000000000,
								createdByName: String,
								modifiedOn: 0001-01-01,
								modifiedBy: 00000000000000000000000000000000,
								status: Active,
								left: 0,
								right: 0,
								id: 00000000000000000000000000000000
							}
						],
						status: Active,
						left: 0,
						right: 0,
						id: 00000000000000000000000000000000
					}
				],
				status: Active,
				left: 0,
				right: 0,
				id: 00000000000000000000000000000000
			}
		],
		status: Active,
		id: 00000000000000000000000000000000
	},
	appKey: 0,
	token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: Success,
	response: False,
	errorMessage: 
	{
		message: String,
		statusCode: 0
	}
}