4.3.2. ProjectCreate¶
Description¶
The method allows you to create a new project for the user with the specified user_id.
Request¶
{
"user_id":(number),
"methods":[
{
"method":"ProjectCreate",
"params":{
"name":(string)
}
}
]
}
where:
user_id— an integer value, a user identifier;name— a string, a project name.
Reply¶
{
"reply":[
{
"method":"ProjectCreate",
"result":[
{
"project_id":(number),
"name":(string)
}
]
}
]
}
where:
project_id— an integer value, a user project identifier;name— a string, a project name.
Example¶
Request by the
cURL utility¶curl http://172.16.1.41/ctrl_api/v1/json \
-H "Content-Type: application/json" \
--data '{"user_id":1,"methods":[{"method":"ProjectCreate","params":{"name":"Test_ProjectCreate"}}]}'
Reply¶
{
"reply": [
{
"method": "ProjectCreate",
"result": {
"project_id": 51,
"name": "Test_ProjectCreate"
}
}
]
}