• Início
    • A Plataforma
    • Para customizar
      • Visão geral
      • Tutoriais
      • Github.com
      • Guia de contribuição
      • Tabela de compatibilidade
    • Para desenvolver
      • Visão geral
      • API – Guia de Estilo
      • UX – Guia de estilo
    • Para administrar
      • Documentação
  • APIs
  • Documentação
    • APIs Senior X
    • Tutoriais
  • Fórum
  • Blog
  • Entrar
  • Cadastrar-se
  • Início
    • A Plataforma
    • Para customizar
      • Visão geral
      • Tutoriais
      • Github.com
      • Guia de contribuição
      • Tabela de compatibilidade
    • Para desenvolver
      • Visão geral
      • API – Guia de Estilo
      • UX – Guia de estilo
    • Para administrar
      • Documentação
  • APIs
  • Documentação
    • APIs Senior X
    • Tutoriais
  • Fórum
  • Blog
  • Entrar
  • Cadastrar-se
home/APIs Privadas/Platforma (platform)/externalusers
Mais pesquisados:Customização, Tutorial, Documentação

externalusers

237 views 0 22/10/2018 Atualizado em 23/11/2021 integrador

2.0info: 7.1.7 externalusers x-senior-domain: platform x-senior-domain-path: platform x-senior-service-path: externalusers contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/platformsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /externalusers/queries/listAlternativeEmails: post: description: Lists all alternative e-mails from the current user tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – emails properties: emails: type: array items: type: string minimum: 1 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Lists all alternative e-mails from the current user tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – emails properties: emails: type: array items: type: string minimum: 1 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/queries/userInfo: post: description: tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/queries/exists: post: description: Verify if the given user already exists tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: string description: The email of the user we want to verify responses: 200: description: Ok schema: type: object required: – exists properties: exists: type: boolean description: True if the user already exists, false otherwise 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Verify if the given user already exists tags: – Queries x-senior-visibility: PRIVATE parameters: – name: email description: The email of the user we want to verify in: query required: true type: string responses: 200: description: Ok schema: type: object required: – exists properties: exists: type: boolean description: True if the user already exists, false otherwise 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/queries/getConfiguredProviders: post: description: Return a list with the configured providers for the current tenant tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – configuredProviders properties: configuredProviders: type: array items: type: string allOf: – #/definitions/provider minimum: 1 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Return a list with the configured providers for the current tenant tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – configuredProviders properties: configuredProviders: type: array items: type: string allOf: – #/definitions/provider minimum: 1 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/register: post: description: Register a new user on the database tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/registerUser responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: The user created 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/updateUser: post: description: Update a user tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – firstName – lastName properties: firstName: type: string description: The users first name lastName: type: string description: The users last name responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: The user updated 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/registerUsers: post: description: Register many new users on the database tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – users properties: users: type: array items: type: object allOf: – #/definitions/registerUser minimum: 1 description: Users to be registered responses: 200: description: Ok schema: type: object required: – user properties: user: type: array items: type: object allOf: – #/definitions/user minimum: 1 description: List of created users 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/login: post: description: Generates a token to the given user. If the user doesnt exist or if the password is incorrect an exception will be thrown. tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email – password properties: email: type: string description: The email of the given user password: type: string description: The password of the given user responses: 200: description: Ok schema: type: object required: – token properties: token: type: string description: The access token generated 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/loginWithCode: post: description: Generates a token using the given code. If the code is invalid an exception will be thrown tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – code properties: code: type: string description: The authorization code responses: 200: description: Ok schema: type: object required: – token properties: token: type: string description: The access token generated 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/loginExternal: post: description: Make a external login. A external login will authenticate through another application and generate a valid token to the user tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – provider properties: provider: type: string allOf: – #/definitions/provider description: The provider we want to generate the external login responses: 200: description: Ok schema: type: object required: – url properties: url: type: string description: The URL to call in other to call to grant the access token 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/refreshToken: post: description: Refresh the users token tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – refreshToken properties: refreshToken: type: string description: The refresh token value responses: 200: description: Ok schema: type: object required: – token properties: token: type: string description: The token generate from the refresh 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/requestNewPassword: post: description: Request the password to be reseted. An email will be sent to the email with a token that allows the user to change the password. tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email – baseUrl properties: email: type: string description: The email we want to request a new password baseUrl: type: string description: The base URL to create the recover URL redirectUrl: type: string description: The URL to redirect user when login is completed product: type: string description: Identifier of product without spaces and special characters to customize e-mail responses: 200: description: Ok schema: type: object required: – email – alternativeEmails properties: email: type: string description: The email we sent a request to change the password alternativeEmails: type: array items: type: string minimum: 1 description: The alternative e-mails registered to this user 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/resetPassword: post: description: Resets the users password tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email – password – token properties: email: type: string description: The users email password: type: string description: The new password of the user token: type: string description: The token sent by email to the user responses: 200: description: Ok schema: type: object required: – email properties: email: type: string description: The email of the user we changed the password 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/confirmEmail: post: description: User email confirmation tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – token – email properties: token: type: string description: The token sent by email to the user email: type: string description: The users email responses: 200: description: Ok schema: type: object required: – email properties: email: type: string description: The email of the user confirmation email 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/changePassword: post: description: Change the users password tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – currentPassword – newPassword properties: currentPassword: type: string description: The users current password newPassword: type: string description: The users new password responses: 200: description: Ok schema: type: object required: – email properties: email: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/addAssociation: post: description: Add an association from the user to the message sender domain and service tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: string description: The email of the user responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: The added association user 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/addAssociations: post: description: Add an association from a list of users to the message sender domain and service tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: array items: type: string minimum: 1 description: List of users e-mail responses: 200: description: Ok schema: type: object required: – user properties: user: type: array items: type: object allOf: – #/definitions/user minimum: 1 description: List of added association users 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/removeAssociation: post: description: Remove an association from the user to the message sender domain and service tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: string description: The email of the user responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: The user removed 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/removeAssociations: post: description: Remove a list of associations from the users to the message sender domain and service tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – emails properties: emails: type: array items: type: string minimum: 1 description: The list of emails to be removed responses: 200: description: Ok schema: type: object required: – users properties: users: type: array items: type: object allOf: – #/definitions/user minimum: 1 description: The users removed 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/updateName: post: description: Updates de user first and last name tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – firstName – lastName properties: firstName: type: string description: The users first name lastName: type: string description: The users last name responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: The updated user 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/addAlternativeEmail: post: description: Adds an alternative e-mail to the current user. The alternative e-mail can be used to recover the users password. tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: string description: responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/removeAlternativeEmail: post: description: Remove the alternative e-mail association with the current user. tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – email properties: email: type: string description: responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/changeEmail: post: description: Change the current users e-mail. After changing the e-mail the user cannot log in with the old e-mail anymore tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – newEmail – newPassword properties: newEmail: type: string description: The new e-mail for the current user newPassword: type: string description: The new password for the current user responses: 200: description: Ok schema: type: object required: – user properties: user: type: object allOf: – #/definitions/user description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/actions/importUsersFromLegacy: post: description: Registers a new user in the database and\n Add an association from a list of users to the message sender domain and service tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – users properties: users: type: array items: type: object allOf: – #/definitions/registerUser minimum: 1 description: Users to be registered responses: 200: description: Ok schema: type: object required: – result properties: result: type: object allOf: – #/definitions/outputImportUser description: Result of operation 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /externalusers/events/emailChanged: post: description: Indicates that a users e-mail has changed x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – oldEmail – newEmail properties: oldEmail: type: string description: Users old e-mail newEmail: type: string description: Users new e-mail responses: 200: description: OK default: description: Error response schema: #/definitions/genericErrordefinitions: provider: description: type: string enum: – Facebook – Linkedin – Google userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT outputImportUser: description: Output to import user type: object required: – warning – warningUsers properties: warning: type: boolean description: Indicates the warning of operation warningUsers: type: array items: type: object allOf: – #/definitions/warningUser minimum: 1 description: Users who have any warning warningUser: description: Users who have any warning type: object required: – email – errorMessage properties: email: type: string description: User e-mail errorMessage: type: string description: Error / warning message registerUser: description: Contract for new user type: object required: – email – password – firstName – lastName properties: email: type: string description: The users email password: type: string description: The users password firstName: type: string description: The users first name lastName: type: string description: The users last name baseUrl: type: string description: The base URL to confirmation email redirectUrl: type: string description: The URL to redirect user when confirmed email product: type: string description: Identifier of product without spaces and special characters to customize e-mail user: description: type: object required: – id – email – firstName – lastName – created – updated – lastLogin – enable properties: id: type: string description: email: type: string description: firstName: type: string description: lastName: type: string description: created: type: string format: date-time description: updated: type: string format: date-time description: lastLogin: type: string format: date-time description: enable: type: boolean description: notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string description: Class of notification notificationOrigin: type: string description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string description: Notification subject. notificationContent: type: string description: Notification content. sourceDomain: type: string description: Domain that generates the notification. sourceService: type: string description: Service that generates the notification. destinationUser: type: string description: Username of the destination user. link: type: string description: Notification link _discriminator: type: string description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string description: Email sender address sendTo: type: array items: type: string description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string description: The domain the blob belongs to. serviceName: type: string description: The service the blob belongs to. targetObjectId: type: string description: The basic id of the blob. targetCopyId: type: string description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string description: The user-facing error message, if any. errorCode: type: string description: The program-accessible (and service-specific) error code. dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string description: Domain of the dependency service service: type: string description: Name of the dependency service type: string description: Version of the dependency service 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

Este artigo foi útil para você?

Sim  1 Não
Leave A Comment Cancelar resposta

Você precisa fazer o login para publicar um comentário.

© 2022 Senior. Todos os direitos reservados.
Mais pesquisados:Customização, Tutorial, Documentação