Closed squalliram closed 3 months ago
Thanks for attaching the log output. From the output, the error is
400 {\"code\":400,\"message\":\"Comment/title combination invalid for workspace\",\"details\":\"\",
which is odd because the associated API doesn't accept comment/title. Perhaps, you can open a support ticket with Split to understand why the segments
API is throwing an error regarding the workspace?
Hello @davidji99 I checked this with our support team and the API does actually accept comment/title in this format below. I'll ask the team to update the API documentation to reflect that but the curl command for this is below.
curl -v -X PUT -H 'Content-Type:application/json' -d '{"keys":["id1", "id2", "id3"], "comment":"a comment", "title":"a title"}' -H 'Authorization: Bearer mer3vihxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' https://api.split.io/internal/api/v2/segments/<environment-id>/<segment-name>/uploadKeys
So, the JSON format should be:
{
"keys": [
"id1",
"id2",
"id3"
],
"comment": "a comment",
"title": "a title"
}
Can you please add support for title and comments within the segment update call?
@squalliram Should comment
and title
be required when uploading segment keys?
Hi there,
Terraform Version
v.1.7.3
HerokuX Provider Version
Terraform v1.7.3 on darwin_arm64 provider registry.terraform.io/davidji99/split v0.12.3
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Provided below
Copy-paste your Terraform configurations here
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: run-nea3BckLYRchxeVz-apply-log.txt
Expected Behavior
The segment should have been created for the respective environment with the keys mentioned with a title and comment.
Actual Behavior
The last resource call gave an error with the segment update call not having the title and comments available and failed to associate the keys on that segment.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
terraform apply
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: