# Capítulo XIV - Associação/ Desassociação de grupos nos cenários

Conforme descrito no capítulo “Associação de produtos/grupos” deste manual, um grupo de produtos serve para otimizar o volume de regras que serão geradas pela Systax, de forma que em cada cenário sejam geradas regras apenas para os produtos movimentados neste cenário, fazendo com que nosso cliente receba somente as regras que ele realmente utilizará.

Dito isso, essa API possibilita associar ou desassociar um grupo de produtos de um cenário existente.

Para os casos em que ocorrerem erros como cenário ou grupo não existente, grupo já associado anteriormente etc., a API irá informar a ocorrência conforme mensagem específica.

# Descrição dos campos da chamada e retorno

**Chamada**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-campo-descri%C3%A7%C3%A3o-acao" style="width: 380px; border-collapse: collapse; height: 106px;" width="313"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 100.492px; border: 1pt solid black; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="84">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Campo</span>**

</td><td nowrap="nowrap" style="width: 245.832px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="229">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Descrição</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 15.75pt;"><td nowrap="nowrap" style="width: 100.492px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">acao</span>

</td><td nowrap="nowrap" style="width: 245.832px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="229"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Opções “associar” e “desassociar”</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 15.75pt;"><td nowrap="nowrap" style="width: 100.492px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">id\_cenario</span>

</td><td nowrap="nowrap" style="width: 245.832px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="229"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">ID do cenário do cliente</span>

</td></tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 100.492px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">nome\_grupo</span>

</td><td nowrap="nowrap" style="width: 245.832px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="229"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Nome do grupo de produtos</span>

</td></tr></tbody></table>

**Retorno**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-campo-descri%C3%A7%C3%A3o-succ" style="width: 433px; border-collapse: collapse; height: 238px;" width="392"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border: 1pt solid black; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="84">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Campo</span>**

</td><td nowrap="nowrap" style="width: 317.997px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="308">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Descrição</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">success</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Status de retorno</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">message</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Mensagem de retorno</span>

</td></tr><tr style="mso-yfti-irow: 3; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">itens</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Quantidade de itens da chamada</span>

</td></tr><tr style="mso-yfti-irow: 4; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">status</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Indicador numérico do tipo de status retornado</span>

</td></tr><tr style="mso-yfti-irow: 5; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">message</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Mensagem relacionado ao status retornado</span>

</td></tr><tr style="mso-yfti-irow: 6; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">acao</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Opção selecionada de associar ou desassociar</span>

</td></tr><tr style="mso-yfti-irow: 7; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">id\_cenario</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">ID do cenário do cliente</span>

</td></tr><tr style="mso-yfti-irow: 8; mso-yfti-lastrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 93.9915px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="84"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">nome\_grupo</span>

</td><td nowrap="nowrap" style="width: 317.997px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt;" width="308"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Nome do grupo de produtos</span>

</td></tr></tbody></table>

**Tabela de referência para o campo “success” e “message”**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-c%C3%B3digo-de-retorno-su" style="width: 257.0pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 3.5pt 0cm 3.5pt;" width="343"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 15.0pt;"><td nowrap="nowrap" style="width: 132.642px; border: 1pt solid windowtext; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 15pt;" width="123">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Código de retorno</span>**

</td><td nowrap="nowrap" style="width: 65.9915px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-image: initial; border-left: none; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 15pt;" width="64">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">sucess</span>**

</td><td nowrap="nowrap" style="width: 143.98px; border-top: 1pt solid windowtext; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-image: initial; border-left: none; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 15pt;" width="156">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">message</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 15.0pt;"><td nowrap="nowrap" style="width: 132.642px; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="123"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">200</span>

</td><td nowrap="nowrap" style="width: 65.9915px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">true</span>

</td><td nowrap="nowrap" style="width: 143.98px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="156"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">OK</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 60.0pt;"><td nowrap="nowrap" style="width: 132.642px; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 60pt; vertical-align: middle;" width="123"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">400</span>

</td><td style="width: 65.9915px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 60pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">false  
false  
false</span>

</td><td style="width: 143.98px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 60pt; vertical-align: middle;" width="156"><span lang="EN-US" style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-ansi-language: EN-US; mso-fareast-language: PT-BR;">token\_invalid  
token\_expired  
Username ou Password inválido</span>

</td></tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 15.0pt;"><td nowrap="nowrap" style="width: 132.642px; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="123"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">500</span>

</td><td nowrap="nowrap" style="width: 65.9915px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">false</span>

</td><td nowrap="nowrap" style="width: 143.98px; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; background: white; padding: 0cm 3.5pt; height: 15pt; vertical-align: middle;" width="156"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">internal\_error</span>

</td></tr></tbody></table>

**Tabela de referência para o campo “msg”**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-campo-n%C2%BA-ordem-descr" style="width: 581px; border-collapse: collapse; height: 148px;" width="528"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 72.6582px; border: 1pt solid black; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="64">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Campo</span>**

</td><td nowrap="nowrap" style="width: 81.6497px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="64">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">nº ordem</span>**

</td><td nowrap="nowrap" style="width: 399.661px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(232, 232, 232); padding: 0cm 3.5pt; height: 15.75pt;" width="400">**<span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Descrição</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 15.75pt;"><td nowrap="nowrap" rowspan="5" style="width: 72.6582px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Status</span>

</td><td nowrap="nowrap" style="width: 81.6497px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">0</span>

</td><td nowrap="nowrap" style="width: 399.661px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="400"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Sucesso</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 15.75pt;"><td nowrap="nowrap" style="width: 81.6497px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">1</span>

</td><td nowrap="nowrap" style="width: 399.661px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="400"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Cenário não localizado</span>

</td></tr><tr style="mso-yfti-irow: 3; height: 15.75pt;"><td nowrap="nowrap" style="width: 81.6497px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">2</span>

</td><td nowrap="nowrap" style="width: 399.661px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="400"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Grupo de Produtos não localizado</span>

</td></tr><tr style="mso-yfti-irow: 4; height: 15.75pt;"><td nowrap="nowrap" style="width: 81.6497px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">3</span>

</td><td nowrap="nowrap" style="width: 399.661px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="400"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Grupo de Produtos já associado a este cenário</span>

</td></tr><tr style="mso-yfti-irow: 5; mso-yfti-lastrow: yes; height: 15.75pt;"><td nowrap="nowrap" style="width: 81.6497px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="64"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">4</span>

</td><td nowrap="nowrap" style="width: 399.661px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 15.75pt; vertical-align: middle;" width="400"><span style="font-size: 11.0pt; font-family: 'Aptos Narrow',sans-serif; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Grupo de Produtos não consta como associado a este cenário</span>

</td></tr></tbody></table>

# Exemplos de chamada e retorno

**Chamada**

{

 "items": \[

 {

 "acao": "associar",

 "id\_cenario": 2448871,

 "nome\_grupo": "PenTest"

 },

 {

 "acao": "desassociar",

 "id\_cenario": 2518440,

 "nome\_grupo": "PenTest"

 }

 \]

}

**Retorno**

{

 "success": true,

 "message": "Ok", "items": \[

 {

 "status": 0,

 "message": "Sucesso",

 "acao": "associar",

 "id\_cenario": 2448871,

 "nome\_grupo": "PenTest"

 },

 {

 "status": 0,

 "message": "Sucesso",

 "acao": "desassociar",

 "id\_cenario": 2518440,

 "nome\_grupo": "PenTest"

 }

 \]

}