Acesso e Segurança (sam)

2.0info: 1.17.0 Gestao de terceiros description: Serviço do backend do Gestão de Terceiros do Ronda senior X x-senior-domain: Gestão de Acesso e Segurança x-senior-domain-path: sam x-senior-service-path: third contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /sam/third/securityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /updateThird: post: description: Edita um colaborador de empresa terceira com documentos Não é necessário recursos. ###Utilização: -Usuários terceiros. x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – person properties: person: #/definitions/personRecord responses: 200: description: Ok schema: type: object required: – documents properties: id: type: integer description: ID name: type: string description: Nome situation: #/definitions/personSituationType documents: #/definitions/documentRecord registerDate: type: string description: Data de Cadastro gender: #/definitions/gender nationality: type: string description: Nacionalidade birthday: type: string description: Data de Nascimento phones: #/definitions/phoneRecord emails: #/definitions/emailRecord lastModificationDate: type: string description: Data da Última Alteração address: type: string description: Endereço district: type: string description: Bairro city: type: string description: Cidade federalState: type: string description: Estado zipCode: type: string description: Código Postal personSituation: #/definitions/personSituationRecord default: description: Error response schema: #/definitions/genericError /createThird: post: description: Cria colaborador de empresa terceira com documentos Não é necessário recursos. ###Utilização: -Usuários terceiros. x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – person properties: person: #/definitions/personRecord responses: 200: description: Ok schema: type: object required: – documents properties: id: type: integer description: ID name: type: string description: Nome situation: #/definitions/personSituationType documents: #/definitions/documentRecord registerDate: type: string description: Data de Cadastro gender: #/definitions/gender nationality: type: string description: Nacionalidade birthday: type: string description: Data de Nascimento phones: #/definitions/phoneRecord emails: #/definitions/emailRecord lastModificationDate: type: string description: Data da Última Alteração address: type: string description: Endereço district: type: string description: Bairro city: type: string description: Cidade federalState: type: string description: Estado zipCode: type: string description: Código Postal personSituation: #/definitions/personSituationRecord default: description: Error response schema: #/definitions/genericErrordefinitions: personSituationType: type: string enum: – ACTIVE – BLOCKED gender: type: string enum: – UNKNOWN – MALE – FEMALE phoneType: type: string enum: – UNDEFINED – WORK – MOBILE – HOME – OTHERS personRecord: type: object required: – documents properties: id: type: integer description: ID name: type: string description: Nome situation: #/definitions/personSituationType documents: type: array items: #/definitions/documentRecord description: Documento registerDate: type: string description: Data de Cadastro format: date-time gender: #/definitions/gender nationality: type: string description: Nacionalidade birthday: type: string description: Data de Nascimento format: date phones: type: array items: #/definitions/phoneRecord description: Telefone emails: type: array items: #/definitions/emailRecord description: Email lastModificationDate: type: string description: Data da Última Alteração format: date-time address: type: string description: Endereço district: type: string description: Bairro city: type: string description: Cidade federalState: type: string description: Estado zipCode: type: string description: Código Postal personSituation: #/definitions/personSituationRecord documentRecord: type: object required: – documentType – document properties: id: type: integer description: ID documentType: #/definitions/documentTypeRecord document: type: string description: Documento documentTypeRecord: type: object required: – id – name – label – required properties: id: type: integer description: ID name: type: string description: Nome do tipo de documento label: type: string description: Label do documento mask: type: string description: Máscara do documento required: type: boolean description: Documento obrigatório phoneRecord: type: object required: – number – phoneType properties: id: type: integer description: Id do telefone preferential: type: boolean description: Telefone preferencial idd: type: integer description: DDI/IDD (International Direct Dialing) number: type: string description: Número do Telefone phoneExtension: type: string description: Ramal phoneType: #/definitions/phoneType emailRecord: type: object required: – email properties: id: type: integer description: Id do email preferential: type: boolean description: Email preferencial email: type: string description: Email personSituationRecord: type: object properties: id: type: integer description: ID personId: type: integer description: ID da pessoa blockDate: type: string description: Data do bloqueio format: date-time blockReason: type: string description: Motivo do bloqueio genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE