Back to index
Summary
Generate personal access token for an authorized user.requestStringrequiredThis parameter and the value displayed are required; request=createUserAccessToken must appear in your query string.descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. expirationDaysIntegeroptionalSpecify the number of days after which the user access token will expire. userAccessTokenNameStringoptionalThe name of the user access token. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createUserAccessToken( request: "test-request" /* optional arguments */ )