original documentation
try {
const input = {
name : '' , // string
description : '' , // string
purpose : '' , // string
environment : '' , // string
} ;
const { data :{ project} } = await dots . project . createProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ projects} } = await dots . project . listProjects ( input ) ;
console . log ( projects ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
project_id : '' , // string
name : '' , // string
description : '' , // string
purpose : '' , // string
environment : '' , // string
is_default : true , // boolean
} ;
const { data :{ project} } = await dots . project . updateProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
project_id : '' , // string
name : '' , // string
description : '' , // string
purpose : '' , // string
environment : '' , // string
is_default : true , // boolean
} ;
const { data :{ project} } = await dots . project . patchProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
project_id : '' , // string
} ;
const { data :{ project} } = await dots . project . getProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const { data :{ project} } = await dots . project . getDefaultProject ( ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
const input = {
name : '' , // string
description : '' , // string
purpose : '' , // string
environment : '' , // string
is_default : true , // boolean
} ;
const { data :{ project} } = await dots . project . updateDefaultProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
name : '' , // string
description : '' , // string
purpose : '' , // string
environment : '' , // string
is_default : true , // boolean
} ;
const { data :{ project} } = await dots . project . patchDefaultProject ( input ) ;
console . log ( project ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
project_id : '' , // string
} ;
const { status} = await dots . project . deleteProject ( input )
console . log ( status ) ;
} catch ( error ) {
console . log ( error ) ;
}
original documentation
try {
const input = {
page : 1 , // number
per_page : 25 , // number
project_id : '' , // string
} ;
const { data :{ resources} } = await dots . project . listProjectResources ( input ) ;
console . log ( resources ) ;
} catch ( error ) {
console . log ( error ) ;
}
list-default-project-resources
original documentation
try {
const input = {
page : 1 , // number
per_page : 25 , // number
} ;
const { data :{ resources} } = await dots . project . listDefaultProjectResources ( input ) ;
console . log ( resources ) ;
} catch ( error ) {
console . log ( error ) ;
}
assign-resources-to-project
original documentation
try {
const input = {
resources : [ ] , // string[]
project_id : '' , // string
} ;
const { data :{ resources} } = await dots . project . assignResourcesToProject ( input ) ;
console . log ( resources ) ;
} catch ( error ) {
console . log ( error ) ;
}
assign-resources-to-default-project
original documentation
try {
const input = {
resources : [ ] , // string[]
} ;
const { data :{ resources} } = await dots . project . assignResourcesToDefaultProject ( input ) ;
console . log ( resources ) ;
} catch ( error ) {
console . log ( error ) ;
}