The YAML diff and the template diff between two versions of a profile.
GET
/profiles/{key}/diff
const url = 'https://example.com/api/v1/profiles/example/diff?from_version=1&to_version=1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/profiles/example/diff?from_version=1&to_version=1'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”key
required
string
Query Parameters
Section titled “Query Parameters”from_version
required
integer
to_version
required
integer
Responses
Section titled “ Responses ”The diff.
Media typeapplication/json
object
from
required
integer
to
required
integer
yaml
required
Array<object>
object
op
required
string
text
required
One or more whole lines, each ending with a newline except possibly the last line of the file.
string
template
required
Array<object>
object
op
required
string
text
required
One or more whole lines, each ending with a newline except possibly the last line of the file.
string
Example
{ "yaml": [ { "op": "equal" } ], "template": [ { "op": "equal" } ]}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}