...
Need to create user with CRONJOB as name and type as SYSTEM and ROLE as SYSTEM AND EMPLOYEE here is the sample curl to create the user.
Code Block |
---|
|
curl --location --request POST 'http://localhost:8090/user/users/_createnovalidate' |
--header 'Content-Type: application/json' |
{ [{
}
]
}
},
"mobileNumber": "XXXXXX", |
[{
},
{
"code": "EMPLOYEE",
"tenantId": "pb"
}
]
}
Deployment:
When you build the cronjob you will get the build id like below.
api-cronjob:develop-c0aa08a-2
From this you will take the only id instead of complete name like develop-c0aa08a-2. This will be used as the id for your respective yaml files and will be deployed the same to you required environment to test the cron job.
For example :
...