curl --request POST \
--url https://api.comstruct.com/v1/projects/sap \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
[
{
"number": "PRJ-2024-001",
"title": "Highway Construction A1",
"type": "Infrastructure",
"parent_number": "Bavaria",
"legal_entity_number": "LE-001",
"alternative_number": "ALT-PRJ-001",
"latitude": 48.1351,
"longitude": 11.582
}
]
'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "EXT-001",
"title": "Example Site",
"project_number": "23423420",
"description": "<string>",
"region": "Bavaria",
"project_region_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"latitude": 48.1351,
"longitude": 11.582,
"alternative_project_number": "<string>",
"status": "<string>",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": {
"address": "<string>",
"city": "<string>",
"country": "<string>",
"house_number": "<string>",
"zip": "<string>"
},
"legal_entity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"number": "<string>"
},
"project_invites": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "<string>",
"role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]Projects
Projects (SAP)
Erforderliche Berechtigungen: projects:write
Empfängt und verarbeitet Projekte aus dem SAP-System. Akzeptiert ein Array von SAP-Projekten.
Feldzuordnung:
number→project_number: Die SAP-Projektnummertitle→title: Der Projekttiteltype→description: Der Projekttyp/die Beschreibungparent_number→region: Wird für die Projektregionssuche verwendetlegal_entity_number: Wird für die Buchungskreis-Zuordnung verwendetalternative_number→alternative_project_number: Die alternative Projektnummer in SAPlatitude/longitude: Geografischer Standort. Weglassen belässt den gespeicherten Wert;nulllöscht ihn.
POST
/
projects
/
sap
curl --request POST \
--url https://api.comstruct.com/v1/projects/sap \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
[
{
"number": "PRJ-2024-001",
"title": "Highway Construction A1",
"type": "Infrastructure",
"parent_number": "Bavaria",
"legal_entity_number": "LE-001",
"alternative_number": "ALT-PRJ-001",
"latitude": 48.1351,
"longitude": 11.582
}
]
'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "EXT-001",
"title": "Example Site",
"project_number": "23423420",
"description": "<string>",
"region": "Bavaria",
"project_region_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"latitude": 48.1351,
"longitude": 11.582,
"alternative_project_number": "<string>",
"status": "<string>",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": {
"address": "<string>",
"city": "<string>",
"country": "<string>",
"house_number": "<string>",
"zip": "<string>"
},
"legal_entity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"number": "<string>"
},
"project_invites": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "<string>",
"role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
]Authorizations
Body
application/json
Response
Projekte erfolgreich erstellt