diff --git a/src/version2/parameters/getBlogPostVersions.ts b/src/version2/parameters/getBlogPostVersions.ts index 60ccddb5..994c93cc 100644 --- a/src/version2/parameters/getBlogPostVersions.ts +++ b/src/version2/parameters/getBlogPostVersions.ts @@ -8,7 +8,7 @@ export interface GetBlogPostVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index 2c20a39d..3e735c4f 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -102,7 +102,7 @@ export class Version { url: `/blogposts/${parameters.id}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort,