Hierarchy

  • BlogPostsApi

Constructors

Properties

api: ObservableBlogPostsApi

Methods

  • Delete the Blog Post object identified by the id in the path. Delete a Blog Post

    Parameters

    • objectId: string

      The Blog Post id.

    • Optional archived: boolean

      Whether to return only results that have been archived.

    • Optional _options: Configuration

    Returns Promise<void>

  • Delete the Blog Post objects identified in the request body. Note: This is not the same as the in-app archive function. To perform a dashboard archive send an normal update with the archivedInDashboard field set to true. Delete a batch of Blog Posts

    Parameters

    Returns Promise<void>

  • Retrieve the Blog Post object identified by the id in the path. Retrieve a Blog Post

    Parameters

    • objectId: string

      The Blog Post id.

    • Optional archived: boolean

      Specifies whether to return deleted Blog Posts. Defaults to `false`.

    • Optional _options: Configuration

    Returns Promise<BlogPost>

  • Get the list of blog posts. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits. Get all Blog Posts

    Parameters

    • Optional createdAt: Date

      Only return Blog Posts created at exactly the specified time.

    • Optional createdAfter: Date

      Only return Blog Posts created after the specified time.

    • Optional createdBefore: Date

      Only return Blog Posts created before the specified time.

    • Optional updatedAt: Date

      Only return Blog Posts last updated at exactly the specified time.

    • Optional updatedAfter: Date

      Only return Blog Posts last updated after the specified time.

    • Optional updatedBefore: Date

      Only return Blog Posts last updated before the specified time.

    • Optional sort: string[]

      Specifies which fields to use for sorting results. Valid fields are `name`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`. `createdAt` will be used by default.

    • Optional after: 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.

    • Optional limit: number

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

    • Optional archived: boolean

      Specifies whether to return deleted Blog Posts. Defaults to `false`.

    • Optional _options: Configuration

    Returns Promise<CollectionResponseWithTotalBlogPostForwardPaging>

  • Take any changes from the draft version of the Blog Post and apply them to the live version. Push Blog Post draft edits live

    Parameters

    • objectId: string

      The id of the Blog Post for which it's draft will be pushed live.

    • Optional _options: Configuration

    Returns Promise<void>

  • Discards any edits and resets the draft to the live version. Reset the Blog Post draft to the live version

    Parameters

    • objectId: string

      The id of the Blog Post for which it's draft will be reset.

    • Optional _options: Configuration

    Returns Promise<void>

  • Takes a specified version of a blog post, sets it as the new draft version of the blog post. Restore a previous version of a blog post, to the draft version of the blog post

    Parameters

    • objectId: string

      The Blog Post id.

    • revisionId: number

      The Blog Post version id to restore.

    • Optional _options: Configuration

    Returns Promise<BlogPost>

  • Sparse updates a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified. Update a Blog Post

    Parameters

    • objectId: string

      The Blog Post id.

    • blogPost: BlogPost

      The JSON representation of the updated Blog Post.

    • Optional archived: boolean

      Specifies whether to update deleted Blog Posts. Defaults to `false`.

    • Optional _options: Configuration

    Returns Promise<BlogPost>

  • Sparse updates the draft version of a single Blog Post object identified by the id in the path. All the column values need not be specified. Only the that need to be modified can be specified. Update a Blog Post draft

    Parameters

    • objectId: string

      The Blog Post id.

    • blogPost: BlogPost

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

    • Optional _options: Configuration

    Returns Promise<BlogPost>

Generated using TypeDoc