Projects Beta
Projects that group your artifacts.
Create a new project.
POST /project/management
Returns the created Project with data provided.
Authentication: Bearer token
Request body
Project object to be created.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X POST https://api.sommatic.ai/project/management \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch('https://api.sommatic.ai/project/management', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/project/management",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": "<ProjectManagement>"
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Update an existing project.
PATCH /project/management
Updates the data of an existing Project with the data provided.
Authentication: Bearer token
Request body
Project object to be created.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X PATCH https://api.sommatic.ai/project/management \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'const response = await fetch('https://api.sommatic.ai/project/management', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.patch(
"https://api.sommatic.ai/project/management",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": "<ProjectManagement>"
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Delete a Project by its id.
DELETE /project/management
Deletes a Project based on the provided ID.
Authentication: Bearer token
Request body
ID of the Project to delete
-
idstring
Responses
-
200OK. -
500Something went wrong while performing this action.
curl -X DELETE https://api.sommatic.ai/project/management \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "<id>"
}'const response = await fetch('https://api.sommatic.ai/project/management', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "<id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.delete(
"https://api.sommatic.ai/project/management",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"id": "<id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Project successfully deleted",
"result": null
}{
"status": 500,
"success": false,
"message": "Something went wrong while performing this action",
"result": null
}Get an Project by query selector.
GET /project/management/{queryselector}
Returns the Project information that matches the query selector an search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idall -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include projects of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude projects of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/project/management/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/project/management/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/project/management/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": "<ProjectManagement>"
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}