added CreatePlatformEndpoint