PingOne Platform APIs

Promotion mappings

The Promotion Mappings operations enable you to track the mappings used by the Promotions service from the source environment to one or more target environment. This is particularly important if you’ve allowed the Promotions service to automatically generate the mappings when you created the promotion. Refer to Create Promotion for more information.

Promotion Mappings data model

Property Type Required Mutable Description

sourceEnvironment.id

String

N/A

Read-only

The identifier of the source environment.

targetEnvironment.id

String

N/A

Read-only

The identifier of the target environment.

resourceMappings

String

N/A

Read-only

The mappings of source environment resource to target environment resource based on their identifiers.

Promotion mappings errors

In addition to the general error codes, promotion mapping operations can return the following errors:

HTTP status Top‑level code Detail code When it happens and what the response contains

400

REQUEST_FAILED

None

Message: The request could not be completed. There was an issue processing the request.

When and details

When: The Promotions service could not read the promotion mappings in its datastore

Details: Describes the failing operation; the datastore error message from the service is returned.

401

ACCESS_FAILED

None

Message: The request could not be completed. You do not have access to this resource.

When and details

When: The access token is missing, invalid, or expired

Details: None.

403

ACCESS_FAILED

INSUFFICIENT_PERMISSIONS

Message: You do not have permissions or are not licensed to make this request.

When and details

When: The actor lacks the promotion:read:promotion permission

Details: You do not have permission to access this resource. with target targetEnvironment

403

ACCESS_FAILED

LICENSE_EXCEEDED

Message: The request exceeded your license limit.

When and details

When: The environment referenced by the request is disabled, or the Configuration Management capability is not enabled for the environment

Details: Environment is disabled: <environmentId> or Configuration management is not enabled for environment: <environmentId> with no target

404

NOT_FOUND

None

Message: The request could not be completed. The requested resource was not found.

When and details

When: A Read All Promotion Mappings request references a source and target environment pair with no promotion mappings

Details: Failed to retrieve promotion mappings for environment with source id: '<sourceEnvironmentId>' and target id: '<targetEnvironmentId>' with target promotionMappings