Create new project
POST {{baseUrl}}/projects?userId=<string>
Creates a project with the provided project name.
If no name
is given in the request, then an error will be returned. The userId
parameter is required. The name default
is not allowed to be used.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
userId | string | (Required) The id of the user. Usually this is the user's email address. If this parameter does not exist the API tries to extract it from the impersonated token. |
Request Body
{"name"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"zXehuYJOP-F4fhZ4VyCRG\u0026EIO","name":"Production line 1","userId":"user@example.com","tenant":"myiottenant"}