system
bulk-update

Atualizar vários registros de uma vez

Changed on

Aplica a mesma alteração a vários registros de uma vez. O model_name aceita project (os campos do corpo são os mesmos do endpoint de edição de projeto) e answer_pool (respostas de formulário dinâmico) — os demais modelos ainda não são suportados.

Falhas em registros individuais não interrompem o lote: o que deu certo é gravado e a resposta traz os contadores e o motivo de cada falha. Enquanto um lote do mesmo usuário está em andamento, uma nova chamada com mais de um ID responde 409.

post/api/management/system/bulk-update/{model_name}

Request

  • Base URL: https://api.olie.ai
  • URL: https://api.olie.ai/api/management/system/bulk-update/{model_name}
  • Auth: HTTP bearer

Request body

idsstring[] required

IDs dos registros que receberão a alteração. Obrigatório, sem valores repetidos e sem limite máximo de itens.

namestring

model_name=project: novo nome do projeto. Até 191 caracteres.

descriptionstring

model_name=project: nova descrição do projeto.

impactinteger

model_name=project: grau de impacto do projeto, de 1 a 10.

status1 | 2 | 3 | 4

model_name=project: situação do projeto — 1 em andamento, 2 concluído, 3 arquivado, 4 parado.

budgetnumber

model_name=project: orçamento do projeto. Use null para limpar.

is_templateboolean

model_name=project: marca ou desmarca os projetos como modelo.

contact_idstring uuid

model_name=project: contato vinculado ao projeto. null remove o vínculo.

customer_idstring uuid

model_name=project: cliente vinculado ao projeto. null remove o vínculo.

parent_idstring uuid

model_name=project: projeto pai. null desvincula da hierarquia.

Response

Sucesso

responseboolean required

Sempre true quando a requisição foi processada.

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property / became not nullable

    • breaking

      the request property became not nullable

    • warning

      removed the request property //

    • breaking

      added the new required request property //

    • breaking

      added the new required request property //

    • breaking

      added the new required request property /

    • breaking

      added the new required request property //

    • breaking

      request property was restricted to a list of enum values

    • breaking

      request property // was restricted to a list of enum values

    • breaking

      request property // was restricted to a list of enum values

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the // request property type changed from no type to string, and format from no format to uuid

    • breaking

      the // request property type changed from no type to string, and format from no format to uuid

    • breaking

      the // request property type changed from string to no type

    • breaking

      the // request property type changed from no type to integer

    • breaking

      the // request property type changed from no type to integer

    • breaking

      the // request property type changed from no type to string, and format from no format to uuid

    • breaking

      the // request property type changed from no type to string, and format from no format to uuid

    • breaking

      the / request property type changed from no type to string, and format from no format to uuid

    • breaking

      the // request property type changed from no type to integer

    • breaking

      the // request property type changed from no type to integer

    • breaking

      the // response's property type changed from no type to object for status

    • warning

      the request property's maxLength was set to 191

    • warning

      the request property's max was set to 10.00

    • warning

      the request property's min was set to 0.00

    • warning

      the request property's min was set to 1.00

    • warning

      removed the optional property / from the response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property /

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property // became nullable

    • info

      added the new 1.00 enum value to the request property

    • info

      added the new 2.00 enum value to the request property

    • info

      added the new 3.00 enum value to the request property

    • info

      added the new 4.00 enum value to the request property

    • info

      added the new add enum value to the request property //

    • info

      added the new assignee enum value to the request property //

    • info

      added the new creator enum value to the request property //

    • info

      added the new follower enum value to the request property //

    • info

      added the new remove enum value to the request property //

    • info

      the request property type was generalized from integer to number

    • info

      the // request property format was generalized from date to no format

    • info

      added the optional property /// to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property became required for the status

    • info

      added the required property /// to the response with the status

    • info

      added the required property /// to the response with the status