crm

2.0info: 3.1.1 auth description: Serviço responsável por assinar filas x-senior-domain: crm x-senior-domain-path: crm x-senior-service-path: auth contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /crm/auth/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: /entities/userRole: post: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: entity in: body required: true schema: #/definitions/userRole responses: 200: description: The created resource schema: #/definitions/userRole default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: entity in: body required: true schema: #/definitions/userRole responses: 200: description: The created resource schema: #/definitions/userRole default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: The created resource schema: type: array items: #/definitions/userRole default: description: Error response schema: #/definitions/genericError /entities/userRole/{id}: put: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/userRole responses: 200: description: Ok schema: #/definitions/userRole default: description: Error response schema: #/definitions/genericError patch: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/userRole responses: 200: description: Ok schema: #/definitions/userRole default: description: Error response schema: #/definitions/genericError get: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/userRole default: description: Error response schema: #/definitions/genericError delete: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /entities/userRole/bulk: post: description: This entity is customizable. tags: – Entities parameters: – #/parameters/clientId – name: entities in: body required: true schema: type: array items: #/definitions/userRole responses: 200: description: The bulk creation has created resources default: description: Error response schema: #/definitions/genericErrordefinitions: userRole: type: object required: – authUser – role properties: id: type: string description: format: uuid authUser: #/definitions/authUser role: #/definitions/role usuger: type: string description: dthger: type: string description: format: date-time usualt: type: string description: dthalt: type: string description: format: date-time authUser: type: object required: – login – name – email – blocked properties: id: type: string description: format: uuid login: type: string description: Login do usuário name: type: string description: Nome do usuário email: type: string description: Email do usuário blocked: type: boolean description: Se o usuário está bloqueado ou não usuger: type: string description: dthger: type: string description: format: date-time usualt: type: string description: dthalt: type: string description: format: date-time role: type: object required: – name properties: id: type: string description: format: uuid name: type: string description: Nome do papel description: type: string description: Descrição do papel usuger: type: string description: dthger: type: string description: format: date-time usualt: type: string description: dthalt: type: string description: format: date-time 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