Pular para o conteúdo principal
POST
/
credentials
Cadastro de Credenciais
curl --request POST \
  --url https://crawler.production.judit.io/credentials \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "credentials": [
    {
      "credential": {
        "system_name": "<string>",
        "customer_key": "<string>",
        "username": "<string>",
        "password": "<string>"
      }
    }
  ]
}
'
[
	{
		"system_name": "PJEINTER TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJEINTER TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	}
]

Documentation Index

Fetch the complete documentation index at: https://docs.judit.io/llms.txt

Use this file to discover all available pages before exploring further.

credentials
array
Credencial Wildcard: *Se você cadastrar uma credencial sob o wildcard, todo tribunal que não tenha uma credencial específica usará a credencial wildcard.Se nenhuma customer_key for informada, será criada uma customer_key vazia.
Para remover a credencial de um determinado sistema, envie username e password vazios.
[
	{
		"system_name": "PJEINTER TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJEINTER TJMT - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJBA - 1º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PJE TJMT - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	},
	{
		"system_name": "PROJUDI TJBA - 2º grau",
		"customer_key": "00000001",
		"message": "CREDENTIAL_CREATED"
	}
]
Se a credencial já existir, a mensagem será CREDENTIAL_UPDATED.

Autorizações

api-key
string
header
obrigatório

Corpo

application/json
credentials
object[]