This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ManagementClient = require('auth0').ManagementClient; | |
| const Stigg = require('@stigg/node-server-sdk').Stigg; | |
| const crypto = require('crypto'); | |
| /** | |
| * Handler that will be called during the execution of a PostLogin flow. | |
| * | |
| * @param {Event} event - Details about the user and the context in which they are logging in. | |
| * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --request POST \ | |
| --header 'content-type: application/json' \ | |
| --header 'X-API-KEY: <USER_API_SERVICE_KEY_OR_JWT_BEARER_TOKEN>' \ | |
| --url 'https://api.stigg.io/graphql' \ | |
| --data '{ | |
| "query": "mutation MergeEnvironment($input: MergeEnvironmentInput!) {\n mergeEnvironment(input: $input) {\n environmentSlug\n taskIds\n }\n}", | |
| "variables": { | |
| "input": { | |
| "destinationEnvironmentName": "SaaStart", | |
| "destinationEnvironmentType": "DEVELOPMENT", |