Remover Push

Para desativar o push de um processo é necessário chamar o método DELETE passando o ID do processo + token fixo na URL.

ParâmetroDescrição
database(obrigatório) é o CPF/CNPJ da base de dados.
justice(obrigatório) é o ID do processo.
token(obrigatório) é o token de acesso da API fornecido pela Loy

Exemplo de requisição

DELETE
https://api.loylegal.com/v1/{database}/justices/push/{justice}?token={token}

Exemplo de resposta

{
	"typeOfAccess": "Público",
	"judgment": {
		"classIdentifier": "436",
		"justice": "Justiça do Trabalho",
		"instance": "1º Grau",
		"organInstance": "1º Grau",
		"organCourt": "TRT5",
		"organState": "PR",
		"organName": "01ª VARA DO TRABALHO DE MARINGÁ",
		"organCourtName": "TRT5",
		"organSystem": "TRT",
		"number": "00002640420215090872",
		"className": "ATOrd",
		"organCity": "MARINGÁ",
		"rite": "ATOrd",
		"stick": "05ª VARA DO TRABALHO"
	},
	"activeDebt": {
		"registrationTerms": []
	},
	"subjects": [
		{
			"part": {
				"subjectType": "Parte Ativa",
				"partType": "pessoa",
				"people": "6571cb74c82f7b05950e7acb",
				"isCustomer": false
			},
			"advocates": [
				{
					"_id": "6571cece639f2a01a069a2f6",
					"subjectType": "Parte Ativa",
					"partType": "advogado",
					"people": "6571cb98c82f7b01950e7a7a"
				}
			],
			"_id": "6571cece639f2a01a069a2f0"
		},
		{
			"part": {
				"subjectType": "Parte Passiva",
				"partType": "pessoa",
				"people": "8f3ec23165bcaf008136948b",
				"isCustomer": false
			},
			"advocates": [
				{
					"_id": "6571cece639f2a01a069a2ef",
					"subjectType": "Parte Passiva",
					"partType": "advogado",
					"people": "6579cbe1c83f7b01950e7bd8"
				}
			],
			"_id": "6571cece639f2a01a069a2ed"
		}
	],
	"topics": [],
	"filings": [],
	"magistrateActive": [],
	"linkProcesses": [],
	"otherParams": [],
	"amountOfTheClaim": 0,
	"provisioning": 0,
	"logs": [],
	"push": {
		"days": [],
		"createdAt": "2023-12-14T12:00:00.068Z",
		"credits": 4,
		"ip": "127.0.0.1",
		"isEnabled": false,
		"periodicity": 4,
		"user": "80ba81aa52526d67365e649a",
		"withDocuments": false
	},
	"isClosed": false,
	"typesOfCategories": [],
	"categories": [],
	"incidents": [],
	"deadlines": [],
	"_id": "6501c49f193b19005e0297a1",
	"origin": "Automático",
	"situation": "Ativo",
	"isDigital": true,
	"isWorked": false,
	"user": "80ba81aa52526d67365e649a",
	"lawyerResponsible": "80ba81aa52526d67365e649a",
	"publicConsult": true,
	"thirdProcess": false,
	"createdAt": "2023-12-07T13:11:59.122Z",
	"createdDate": "2023-12-07T13:11:59.122Z",
	"__v": 1,
	"distributed": "2021-03-25T15:05:51.000Z",
	"secretLevel": "Sem Sigilo (Nível 0)",
	"title": "FEGUEIRA x RAMOS"
}