Templates

Consultar status de aprovação

Changed on

Devolve o status que a Arara recebeu do provedor, sem nova consulta à Meta. Para saber da mudança sem consultar em laço, escute o webhook template.updated. Permissão: READ.

get/v1/templates/{id}/status

Request

Path parameters

idstring uuid required

ID do template (UUID). O nome não é aceito aqui.

Response

Status

statusstring required

PENDING, APPROVED, REJECTED, PAUSED ou DISABLED.

rejectionReasonstring nullable

Motivo informado pela Meta quando REJECTED.

categorystring nullable

Example response

{
  "status": "REJECTED",
  "rejectionReason": "INVALID_FORMAT",
  "category": "UTILITY"
}

Changes

    • info

      api tag Templates added

    • info

      api tag templates removed

    • info

      added the non-success response with the status

    • breaking

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

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property became optional for the status

    • breaking

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

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added to the response body anyOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status