<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.rbxsoft.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Cadastro_de_modelos_de_produto</id>
	<title>Cadastro de modelos de produto - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rbxsoft.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Cadastro_de_modelos_de_produto"/>
	<link rel="alternate" type="text/html" href="https://wiki.rbxsoft.com/wiki/index.php?title=Cadastro_de_modelos_de_produto&amp;action=history"/>
	<updated>2026-05-19T05:01:30Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.rbxsoft.com/wiki/index.php?title=Cadastro_de_modelos_de_produto&amp;diff=712&amp;oldid=prev</id>
		<title>Felipe: Criou página com 'O objetivo deste serviço é realizar a inclusão de um modelo de produto. Abaixo, segue exemplo do json de envio:  &lt;syntaxhighlight lang=&quot;json&quot; line=&quot;1&quot;&gt; {   &quot;inventory_produ...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.rbxsoft.com/wiki/index.php?title=Cadastro_de_modelos_de_produto&amp;diff=712&amp;oldid=prev"/>
		<updated>2021-06-04T11:42:44Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;O objetivo deste serviço é realizar a inclusão de um modelo de produto. Abaixo, segue exemplo do json de envio:  &amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt; {   &amp;quot;inventory_produ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;O objetivo deste serviço é realizar a inclusão de um modelo de produto. Abaixo, segue exemplo do json de envio:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;inventory_product_model_insert&amp;quot;:&lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;Monitor LCD&amp;quot;, &lt;br /&gt;
    &amp;quot;type_id&amp;quot;: 1, &lt;br /&gt;
    &amp;quot;brand&amp;quot;: &amp;quot;LG&amp;quot;,&lt;br /&gt;
    &amp;quot;image&amp;quot;:&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;customer&amp;quot;,&lt;br /&gt;
      &amp;quot;content&amp;quot;: &amp;quot;RXhlbXBsbyBkZSBjb250ZcO6ZG8gY29udmVydGlkbyBlbSBiYXNlNjQ=&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Detalhamento dos campos'''&lt;br /&gt;
&amp;lt;table style=&amp;quot;border-collapse: collapse; width: 100%;&amp;quot; border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 18px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;ID&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Campo&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Obrigat&amp;amp;oacute;rio&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Pai&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Tipo&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 18px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;Observa&amp;amp;ccedil;&amp;amp;otilde;es&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 18px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 18px;&amp;quot;&amp;gt;A01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 18px;&amp;quot;&amp;gt;inventory_product_model_insert&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 18px;&amp;quot;&amp;gt;Sim&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 18px;&amp;quot;&amp;gt;Raiz&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 18px;&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 18px;&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 18px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 10px;&amp;quot;&amp;gt;A02&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 10px;&amp;quot;&amp;gt;description&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 10px;&amp;quot;&amp;gt;Sim&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 10px;&amp;quot;&amp;gt;A01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 10px;&amp;quot;&amp;gt;Texto (100)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Descri&amp;amp;ccedil;&amp;amp;atilde;o do modelo. N&amp;amp;atilde;o pode haver dois modelos com a mesma descri&amp;amp;ccedil;&amp;amp;atilde;o.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 18px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 10px;&amp;quot;&amp;gt;A03&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 10px;&amp;quot;&amp;gt;type_id&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 10px;&amp;quot;&amp;gt;Sim&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 10px;&amp;quot;&amp;gt;A01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 10px;&amp;quot;&amp;gt;Inteiro (5)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Id do tipo de produto.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 18px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 10px;&amp;quot;&amp;gt;A04&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 10px;&amp;quot;&amp;gt;brand&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 10px;&amp;quot;&amp;gt;N&amp;amp;atilde;o&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 10px;&amp;quot;&amp;gt;A01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 10px;&amp;quot;&amp;gt;Texto (100)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Descri&amp;amp;ccedil;&amp;amp;atilde;o da marca do produto.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 94px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 10px;&amp;quot;&amp;gt;A05&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 10px;&amp;quot;&amp;gt;image&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 10px;&amp;quot;&amp;gt;N&amp;amp;atilde;o&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 10px;&amp;quot;&amp;gt;A01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 10px;&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Grupo de informa&amp;amp;ccedil;&amp;amp;otilde;es da imagem do modelo.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 62px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 46px;&amp;quot;&amp;gt;B01&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 46px;&amp;quot;&amp;gt;name&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 46px;&amp;quot;&amp;gt;Sim&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 46px;&amp;quot;&amp;gt;A05&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 46px;&amp;quot;&amp;gt;Texto (100)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 46px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Nome do arquivo de imagem com a extens&amp;amp;atilde;o. Extens&amp;amp;otilde;es permitidas:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;jpg&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;jpeg&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;png&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;gif&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Exemplo: modelo.jpg&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr style=&amp;quot;height: 24px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 2.56232%; height: 24px;&amp;quot;&amp;gt;B02&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 6.5821%; height: 24px;&amp;quot;&amp;gt;content&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 3.62012%; height: 24px;&amp;quot;&amp;gt;Sim&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 1.04384%; height: 24px;&amp;quot;&amp;gt;A05&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 5.95413%; height: 24px;&amp;quot;&amp;gt;Texto&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;width: 33.8043%; height: 24px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Arquivo de imagem codificado em base64.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Mensagem de retorno'''&lt;br /&gt;
&lt;br /&gt;
Em caso de sucesso, será retornado um json conforme o exemplo abaixo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;status&amp;quot;: 1,&lt;br /&gt;
  &amp;quot;error_code&amp;quot;: 0,&lt;br /&gt;
  &amp;quot;error_description&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;result&amp;quot;: &lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;model_id&amp;quot;: 15, &lt;br /&gt;
    &amp;quot;created_file_name&amp;quot;: &amp;quot;arquivo.jpg&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Em caso de falha, será retornado um json conforme o exemplo abaixo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;status&amp;quot;: 0,&lt;br /&gt;
  &amp;quot;error_code&amp;quot;: 19,&lt;br /&gt;
  &amp;quot;error_description&amp;quot;: &amp;quot;Unknown error!&amp;quot;,&lt;br /&gt;
  &amp;quot;result&amp;quot;: &amp;quot;&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felipe</name></author>
	</entry>
</feed>