Hi everyone,
I'm trying to insert placement groups using the API, but I'm encountering an "invalid parameters" error. After reviewing the request, I suspect the issue might be related to the date format I'm using.
To set the start and end dates of a placement group, I'm using the pricingSchedule property, which expects a value of type com.google.api.client.util.DateTime. However, in the API documentation, the expected format is specified as a String in the format YYYY-MM-DD, which doesn’t match the format generated by the DateTime class (which includes time information like hours, minutes, and seconds).
For context, I'm using Java to make this API call, and I'm working with version v4-rev20220920-2.0.0 of the API client library.
Has anyone faced this issue before? Should the date be sent as a plain YYYY-MM-DD string instead of using the DateTime type? Any clarification would be appreciated.
Thanks in advance!
Hi,
Thank you for reaching out to the CM360 API support team.
To help us investigate this further and understand the root of the issue, could you please provide the following details:
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
DCM API Team |
[2025-05-08 11:12:59Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qWIAB:ref" (ADR-00304542)