system
bulk-update

Atualizar vários registros de uma vez

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 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 nullable

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

customer_idstring uuid nullable

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

parent_idstring uuid nullable

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

Response

Sucesso

responseboolean required

Sempre true quando a requisição foi processada.

Changes

Changed in 4 of the 98 revisions of this API.311337

  • d71b18b1685d31532See the full diff
    • ▲

      added the new required request property //

      new-required-request-property

    • ▲

      added the new required request property //

      new-required-request-property

    • ▲

      added the new required request property /

      new-required-request-property

    • ▲

      added the new required request property //

      new-required-request-property

    • ▲

      request property was restricted to a list of enum values

      request-property-became-enum

    • ▲

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

      request-property-became-enum

    • ▲

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

      request-property-became-enum

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property // became required

      request-property-became-required

    • ▲

      the request property // became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property / became required

      request-property-became-required

    • ▲

      the request property // became required

      request-property-became-required

    • ▲

      the request property // became required

      request-property-became-required

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

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

      response-property-type-changed

    • ●

      the request property's maxLength was set to 191

      request-property-max-length-set

    • ●

      the request property's max was set to 10.00

      request-property-max-set

    • ●

      the request property's min was set to 0.00

      request-property-min-set

    • ●

      the request property's min was set to 1.00

      request-property-min-set

    • ●

      removed the optional property / from the response with the status

      response-optional-property-removed

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property /

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      the request property // became nullable

      request-property-became-nullable

    • ○

      added the new 1.00 enum value to the request property

      request-property-enum-value-added

    • ○

      added the new 2.00 enum value to the request property

      request-property-enum-value-added

    • ○

      added the new 3.00 enum value to the request property

      request-property-enum-value-added

    • ○

      added the new 4.00 enum value to the request property

      request-property-enum-value-added

    • ○

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

      request-property-enum-value-added

    • ○

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

      request-property-enum-value-added

    • ○

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

      request-property-enum-value-added

    • ○

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

      request-property-enum-value-added

    • ○

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

      request-property-enum-value-added

    • ○

      the request property type was generalized from integer to number

      request-property-type-generalized

    • ○

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

      request-property-type-generalized

    • ○

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

      response-optional-property-added

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

      the response property / became required for the status

      response-property-became-required

    • ○

      the response property / became required for the status

      response-property-became-required

    • ○

      the response property / became required for the status

      response-property-became-required

    • ○

      the response property became required for the status

      response-property-became-required

    • ○

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

      response-required-property-added

    • ○

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

      response-required-property-added

  • b43a04f3514581See the full diff
    • ●

      removed the request property

      request-property-removed

    • ●

      removed the request property

      request-property-removed

    • ●

      removed the request property //

      request-property-removed

    • ●

      removed the request property //

      request-property-removed

    • ●

      removed the request property /

      request-property-removed

    • ●

      removed the request property /

      request-property-removed

    • ●

      removed the request property

      request-property-removed

    • ●

      removed the request property //

      request-property-removed

    • ○

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

      request-property-type-generalized

    • ○

      added the non-success response with the status

      response-non-success-status-added

    • ○

      added the non-success response with the status

      response-non-success-status-added

    • ○

      added optional request body

      request-body-added-optional

    • ○

      added the media type application/json for the response with the status

      response-media-type-added