Constructors

Methods

  • Retrieve all blog posts, with paging and filtering options. This method would be useful for an integration that ingests posts and suggests edits. Get all posts

    Parameters

    • OptionalcreatedAt: Date

      Only return blog posts created at exactly the specified time.

    • OptionalcreatedAfter: Date

      Only return blog posts created after the specified time.

    • OptionalcreatedBefore: Date

      Only return blog posts created before the specified time.

    • OptionalupdatedAt: Date

      Only return blog posts last updated at exactly the specified time.

    • OptionalupdatedAfter: Date

      Only return blog posts last updated after the specified time.

    • OptionalupdatedBefore: Date

      Only return blog posts last updated before the specified time.

    • Optionalsort: string[]

      Specifies which fields to use for sorting results. Valid fields are `createdAt` (default), `name`, `updatedAt`, `createdBy`, `updatedBy`.

    • Optionalafter: string

      The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.

    • Optionallimit: number

      The maximum number of results to return. Default is 20.

    • Optionalarchived: boolean

      Specifies whether to return deleted blog posts. Defaults to `false`.

    • Optionalproperty: string
    • Optional_options: PromiseConfigurationOptions

    Returns Promise<CollectionResponseWithTotalBlogPostForwardPaging>

  • Retrieve all blog posts, with paging and filtering options. This method would be useful for an integration that ingests posts and suggests edits. Get all posts

    Parameters

    • OptionalcreatedAt: Date

      Only return blog posts created at exactly the specified time.

    • OptionalcreatedAfter: Date

      Only return blog posts created after the specified time.

    • OptionalcreatedBefore: Date

      Only return blog posts created before the specified time.

    • OptionalupdatedAt: Date

      Only return blog posts last updated at exactly the specified time.

    • OptionalupdatedAfter: Date

      Only return blog posts last updated after the specified time.

    • OptionalupdatedBefore: Date

      Only return blog posts last updated before the specified time.

    • Optionalsort: string[]

      Specifies which fields to use for sorting results. Valid fields are `createdAt` (default), `name`, `updatedAt`, `createdBy`, `updatedBy`.

    • Optionalafter: string

      The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results.

    • Optionallimit: number

      The maximum number of results to return. Default is 20.

    • Optionalarchived: boolean

      Specifies whether to return deleted blog posts. Defaults to `false`.

    • Optionalproperty: string
    • Optional_options: PromiseConfigurationOptions

    Returns Promise<HttpInfo<CollectionResponseWithTotalBlogPostForwardPaging>>

  • Partially updates a single blog post by ID. You only need to specify the values that you want to update. Update a post

    Parameters

    • objectId: string

      The ID of the blog post to update.

    • blogPost: BlogPost

      The JSON representation of the updated Blog Post.

    • Optionalarchived: boolean

      Specifies whether to update deleted blog posts. Defaults to `false`.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<BlogPost>

  • Partially updates the draft version of a single blog post by ID. You only need to specify the values that you want to update. Update the draft of a post

    Parameters

    • objectId: string

      The ID of the blog post to update the draft of.

    • blogPost: BlogPost

      The JSON representation of the updated Blog Post to be applied to the draft.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<BlogPost>