SAP Knowledge Base Article - Public

3459078 - Error "Project key is invalid" occurs when sending a POST request via the API "Commercial Project - Create, Update"

Symptom

Error "Project key is invalid" occurs when sending a POST request via the API "Commercial Project - Create, Update".

Environment

SAP S/4HANA Cloud

Cause

When using the POST method, it is required to pass the key of the parent node through the payload.

Resolution

The solution is to add this line into the existing payload: "CustomerProject": "{Customer Project ID}".

See Also

API: Commercial Project - Create, Update

Keywords

Error, Project key, Invalid, POST, API, Commercial project, Create, Update , KBA , SD-SLS-PBS , Project-Based Services in Sales Documents , SD-SLS-API-2CL , API (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions