Create workspace material
curl --request POST \
--url https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"unit": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', unit: '<string>'})
};
fetch('https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials"
payload = {
"name": "<string>",
"unit": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"unit": "<string>",
"unitPrice": "<string>"
}Materials
Create workspace material
POST
/
api
/
v1
/
workspaces
/
{workspaceId}
/
materials
Create workspace material
curl --request POST \
--url https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"unit": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', unit: '<string>'})
};
fetch('https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plansync.dev/api/v1/workspaces/{workspaceId}/materials"
payload = {
"name": "<string>",
"unit": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"unit": "<string>",
"unitPrice": "<string>"
}Authorizations
apiKeyAuthcookieAuth
Project API key (psk_…) from Project Settings → API keys.
Required scopes depend on the route (e.g. issues:read for listing issues).
Only works on project-scoped /api/v1/projects/{projectId}/… routes.