Skip to content
FeedbackDashboard

Generate config suggestions

$client->projects->configs->guess(string project, string spec, ?string branch): ConfigGuessResponse
POST/v0/projects/{project}/configs/guess
Generate suggestions for changes to config files based on an OpenAPI spec.
ParametersExpand Collapse
project: string
spec: string

OpenAPI spec

branch?:optional string

Branch name

ReturnsExpand Collapse
array<string,ConfigGuessResponseItem>
string content

The file content

Generate config suggestions

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'staging');

$response = $client->projects->configs->guess(
  project: 'project', spec: 'spec', branch: 'branch'
);

var_dump($response);
{
  "foo": {
    "content": "content"
  }
}
Returns Examples
{
  "foo": {
    "content": "content"
  }
}