openapi: 3.2.0 info: title: Moloco Password API version: 1.0.0 description: 'Operations tagged Password across 2 of this provider''s published API definitions: moloco-cloud-auth-api.json, moloco-cloud-auth-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://morse-us-prod.adsmoloco.com tags: - name: Password paths: /v1/users/{email}/password: put: security: - Bearer: [] description: Update the user password with the given password reset token in the header. tags: - Password summary: Update the user password. operationId: v1_update_user_password parameters: - description: The email address of the user. name: email in: path required: true schema: type: string requestBody: content: application/json: schema: required: - password properties: password: description: Password to update. type: string required: true responses: '204': description: The password is successfully updated. '400': description: Bad request content: application/json: schema: $ref: '#/components/schemas/error' '403': description: Forbidden - cannot update permission because of lack of permissions. content: application/json: schema: $ref: '#/components/schemas/error' '404': description: Not found - no such user. content: application/json: schema: $ref: '#/components/schemas/error' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/error' delete: description: Reset the user password and issue a password reset token. tags: - Password summary: Delete the user password. operationId: v1_delete_user_password parameters: - description: The email address of the user. name: email in: path required: true schema: type: string - description: Userspace ID. name: userspace_id in: query required: true schema: type: string - description: Forward URL that will be included in the password reset email. name: forward_url in: query required: true schema: type: string responses: '204': description: The password reset email is sent to the user. '400': description: Bad request content: application/json: schema: $ref: '#/components/schemas/error' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/error' '404': description: Not found - no such user. content: application/json: schema: $ref: '#/components/schemas/error' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/error' servers: - url: https://morse-us-prod.adsmoloco.com components: schemas: error: description: Error response with detailed reason. type: object required: - reason - status properties: reason: description: More detailed reason about why the error was returned. type: string status: description: The error status code. type: integer securitySchemes: Bearer: type: apiKey name: Authorization in: header x-refined-from: - moloco-cloud-auth-api.json - moloco-cloud-auth-openapi.yml x-readme: explorer-enabled: true